From 2720b27a658a360d1ba47949b0e355aa1b0b6949 Mon Sep 17 00:00:00 2001 From: Andrew Wilson Date: Tue, 4 Jun 2019 12:09:18 +1000 Subject: [PATCH 1/2] Always open README with utf-8 encoding --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index ad611c99f..281136a56 100644 --- a/setup.py +++ b/setup.py @@ -1,9 +1,10 @@ # -*- coding: utf-8 -*- +import codecs import re from setuptools import setup -with open("README.rst", "r") as f: +with codecs.open("README.rst", encoding="utf-8") as f: readme = f.read() with open("arrow/__init__.py", "r") as f: From 421dfe841765380accfab6d3b0b8f02d29a5e5c3 Mon Sep 17 00:00:00 2001 From: Andrew Wilson Date: Tue, 4 Jun 2019 12:41:12 +1000 Subject: [PATCH 2/2] Always open init.py with utf-8 encoding --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 281136a56..e46587651 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ with codecs.open("README.rst", encoding="utf-8") as f: readme = f.read() -with open("arrow/__init__.py", "r") as f: +with codecs.open("arrow/__init__.py", encoding="utf-8") as f: init = f.read()