From 678991c93cf5fe1b4b48823be0ccb5d194e95a6b Mon Sep 17 00:00:00 2001 From: Markus Beissinger Date: Mon, 15 Jun 2015 16:22:35 -0700 Subject: [PATCH] Hotfix for Python3 error in setup.py (Issue #14): File "setup.py", line 49, in long_description=read('README.rst'), File "setup.py", line 28, in read return sep.join(buf) TypeError: sequence item 0: expected str instance, bytes found --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index c2004ec..33d4e2f 100644 --- a/setup.py +++ b/setup.py @@ -14,7 +14,7 @@ def read(*filenames, **kwargs): encoding = kwargs.get('encoding', 'utf-8') - mode = kwargs.get('mode', 'rb') + mode = kwargs.get('mode', 'r') sep = kwargs.get('sep', '\n') buf = [] for filename in filenames: