From 82722d80c62b346d901f07253f28cfa9d9cdc3cd Mon Sep 17 00:00:00 2001 From: TheGoddessInari Date: Sat, 2 Jun 2018 12:58:57 -0700 Subject: [PATCH] setup.py: Match file.open encoding with the source code encoding. Hit encoding errors on Windows after 0.11, easiest solution is to match encodings. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index f489078..bdb6775 100644 --- a/setup.py +++ b/setup.py @@ -48,7 +48,7 @@ def read_file(filename, alt=None): lines = None try: - with open(filename) as f: + with open(filename, encoding='utf-8') as f: lines = f.read() except IOError: lines = [] if alt is None else alt