File: 0002-Decode-test-data-using-UTF-8.patch

package info (click to toggle)
python-tinycss2 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 608 kB
  • sloc: python: 1,719; makefile: 19
file content (21 lines) | stat: -rw-r--r-- 656 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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]))