[Python-modules-commits] [watson-developer-cloud] 02/05: binary_opening

Luciano Bello luciano at moszumanska.debian.org
Wed Dec 7 04:54:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

luciano pushed a commit to branch master
in repository watson-developer-cloud.

commit 00003ee90279bcda1aea98af154ce07c405240fd
Author: Luciano Bello <luciano at debian.org>
Date:   Tue Dec 6 16:47:32 2016 -0500

    binary_opening
---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index d2f8f10..a14b7fe 100644
--- a/setup.py
+++ b/setup.py
@@ -37,7 +37,7 @@ try:
     read_md = lambda f: convert(f, 'rst')
 except ImportError:
     print('warning: pypandoc module not found, could not convert Markdown to RST')
-    read_md = lambda f: open(f, 'r').read()
+    read_md = lambda f: open(f, 'rb').read().decode(encoding='utf-8')
 
 
 class PyTest(TestCommand):

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/watson-developer-cloud.git



More information about the Python-modules-commits mailing list