aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--amalgamate/merge_all.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/amalgamate/merge_all.py b/amalgamate/merge_all.py
index 275e930..273ea87 100644
--- a/amalgamate/merge_all.py
+++ b/amalgamate/merge_all.py
@@ -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')