From c86b1ffeb54402912c1e7b4dceec2964371de426 Mon Sep 17 00:00:00 2001 From: JEACO Date: Thu, 23 May 2019 13:53:31 +0200 Subject: [PATCH] Explicitly specify utf-8 encoding when opening file in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 32f3b38..9722f93 100644 --- a/setup.py +++ b/setup.py @@ -29,7 +29,7 @@ News def get_version(pkg): path = os.path.join(os.path.dirname(__file__),pkg,'__init__.py') - with open(path) as fh: + with open(path, encoding='utf-8') as fh: m = re.search(r'^__version__\s*=\s*[\'"]([^\'"]+)[\'"]',fh.read(),re.M) if m: return m.group(1)