chiark
/
gitweb
/
~cjwatson
/
blog.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
219e710
)
fix encoding
author
DarkContact
<DarkContact@mail.ru>
Tue, 19 Nov 2019 19:09:03 +0000
(22:09 +0300)
committer
Vladimír Vondruš
<mosra@centrum.cz>
Mon, 25 Nov 2019 16:50:37 +0000
(17:50 +0100)
css/postprocess.py
patch
|
blob
|
history
diff --git
a/css/postprocess.py
b/css/postprocess.py
index 4017f34ec4d3e6d1f1b11fa9c022e626ef8fb88d..5aee41a31ee9ce8196a59c51518253b96402e3af 100755
(executable)
--- a/
css/postprocess.py
+++ b/
css/postprocess.py
@@
-164,14
+164,14
@@
def postprocess(files, process_imports, out_file):
""".format(' '.join(sys.argv[1:])))
# Parse the top-level file
- with open(files[0]) as f: parse(f)
+ with open(files[0]
, encoding='utf8'
) as f: parse(f)
# Now open the imported files and parse them as well. Not doing any
# recursive parsing.
for i, file in enumerate(imported_files + files[1:]):
if i: out.write('\n')
- with open(file) as f: parse(f)
+ with open(file
, encoding='utf8'
) as f: parse(f)
return 0