From b4b3ada4c02de8866cde75894126fd46c3648c8b Mon Sep 17 00:00:00 2001 From: DarkContact Date: Tue, 19 Nov 2019 22:09:03 +0300 Subject: [PATCH] fix encoding --- css/postprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/css/postprocess.py b/css/postprocess.py index 4017f34e..5aee41a3 100755 --- 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 -- 2.30.2