mirror of
https://github.com/CrowCpp/Crow.git
synced 2024-06-07 21:10:44 +00:00
No need to decode utf-8 strings already.
This commit is contained in:
parent
18c9d69b2d
commit
7a3cb43473
@ -15,7 +15,7 @@ headers = [x.rsplit('/', 1)[-1] for x in glob(pt.join(header_path, '*.h'))]
|
||||
print(headers)
|
||||
edges = defaultdict(list)
|
||||
for header in headers:
|
||||
d = open(pt.join(header_path, header)).read().decode('utf8')
|
||||
d = open(pt.join(header_path, header)).read()
|
||||
match = re_depends.findall(d)
|
||||
for m in match:
|
||||
# m should included before header
|
||||
@ -47,7 +47,7 @@ for x in edges:
|
||||
print(order)
|
||||
build = []
|
||||
for header in order:
|
||||
d = open(pt.join(header_path, header)).read().decode('utf8')
|
||||
d = open(pt.join(header_path, header)).read()
|
||||
build.append(re_depends.sub(lambda x: '\n', d))
|
||||
build.append('\n')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user