From 381d90dd40abf2e46200855c5bb248f0d68b147c Mon Sep 17 00:00:00 2001 From: "John W. O'Brien" Date: Fri, 21 Aug 2020 21:37:08 -0400 Subject: [PATCH] Explicitly decode appdirs.py as UTF-8 --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 7c582f6..bda95e3 100644 --- a/setup.py +++ b/setup.py @@ -1,4 +1,5 @@ #!/usr/bin/env python +from io import open import os # appdirs is a dependency of setuptools, so allow installing without it. try: @@ -9,7 +10,7 @@ def read(fname): - inf = open(os.path.join(os.path.dirname(__file__), fname)) + inf = open(os.path.join(os.path.dirname(__file__), fname), encoding='utf8') out = "\n" + inf.read().replace("\r\n", "\n") inf.close() return out