From a29347c27ba49ff3bb89ca15f0fb87cd5ce0ffa4 Mon Sep 17 00:00:00 2001 From: Ryan J Ollos Date: Sun, 28 May 2017 22:38:52 -0700 Subject: [PATCH] Fix `TypeError` with Python 2.7 (#575) TypeError: 'encoding' is an invalid keyword argument for this function --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 27cf56f..d7fdf3a 100755 --- a/setup.py +++ b/setup.py @@ -9,7 +9,7 @@ if version_tuple[3] is not None: else: version = "%d.%d.%d" % version_tuple[:3] -with open('./README.rst', encoding='utf-8') as f: +with io.open('./README.rst', encoding='utf-8') as f: readme = f.read() setup(