aboutsummaryrefslogtreecommitdiffstats
path: root/amalgamate
diff options
context:
space:
mode:
authorMartin Kemp <martin.kemp@ingg.com>2015-07-30 16:05:57 +0100
committerMartin Kemp <martin.kemp@ingg.com>2015-07-30 16:05:57 +0100
commit7a3cb4347393ae08151dcb15074f44783fe86dcf (patch)
treee3f0d0a2910eab3eed77f3ad9d94971b58d05c13 /amalgamate
parent18c9d69b2d75e38c9e0d05df576cf3a85d7a2392 (diff)
downloadcrow-7a3cb4347393ae08151dcb15074f44783fe86dcf.tar.gz
crow-7a3cb4347393ae08151dcb15074f44783fe86dcf.zip
No need to decode utf-8 strings already.
Diffstat (limited to 'amalgamate')
-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')