From 0566cec2adef4476c17330341e82b8a8c79d5638 Mon Sep 17 00:00:00 2001 From: Vadim Lebedev Date: Tue, 9 Aug 2022 23:17:54 +0200 Subject: [PATCH] Fixes for python3 --- tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 8dbb753..5abcba5 100644 --- a/tests.py +++ b/tests.py @@ -271,7 +271,7 @@ class TestPasswordProtection(unittest.TestCase): def setUp(self): with open(ZIPPATH, mode='w') as f: if PY3: - f.write(base64.b64decode(ZIP_CONTENT).decode('utf-8')) + f.write(base64.b64decode(ZIP_CONTENT).decode('latin1')) else: f.write(base64.b64decode(ZIP_CONTENT))