No need to decode utf-8 strings already.

This commit is contained in:
Martin Kemp 2015-07-30 16:05:57 +01:00
parent 18c9d69b2d
commit 7a3cb43473

View File

@ -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')