debian-python-tinycss2/patches/0002-Decode-test-data-using...

22 lines
656 B
Diff

From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Tue, 10 Jul 2018 10:27:19 +0200
Subject: Decode test data using UTF-8.
---
tinycss2/test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tinycss2/test.py b/tinycss2/test.py
index 3847619..cac42b9 100644
--- a/tinycss2/test.py
+++ b/tinycss2/test.py
@@ -79,7 +79,7 @@ def to_json():
def load_json(filename):
json_data = json.load(open(os.path.join(
- os.path.dirname(__file__), 'css-parsing-tests', filename)))
+ os.path.dirname(__file__), 'css-parsing-tests', filename), encoding='utf-8'))
return list(zip(json_data[::2], json_data[1::2]))