From 7b6f88b059a033c3ce1774e24cbdfde006d01c63 Mon Sep 17 00:00:00 2001 From: Sara Jewett Date: Wed, 23 Dec 2015 15:49:13 -0500 Subject: [PATCH] Specify encoding when dealing with files Former-commit-id: 37f9e12b93d598c2ee77e0055a1001526f195456 --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4621d12..2926f3f 100755 --- a/setup.py +++ b/setup.py @@ -24,7 +24,8 @@ classifiers = [ ] current_dir = os.path.dirname(__file__) -README_contents = open(os.path.join(current_dir, 'README.md')).read() +README_contents = open(os.path.join(current_dir, 'README.md'), + encoding='utf-8').read() doclines = README_contents.split("\n") dependencies = ['ftfy >= 4', 'msgpack-python', 'langcodes', 'regex >= 2015'] if sys.version_info < (3, 4):