[Python-modules-commits] [python-bcrypt] 07/09: fix README ascii decoding error

Daniel Stender stender at moszumanska.debian.org
Sat Dec 3 09:53:01 UTC 2016


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

stender pushed a commit to branch master
in repository python-bcrypt.

commit ae550c486b72e73e8a632265c8cb4d7018760d8a
Author: Daniel Stender <stender at debian.org>
Date:   Tue Jun 28 19:21:19 2016 +0200

    fix README ascii decoding error
    
    Easy fix for encoding error when build in non-utf8 environments.
    Forwarded: not-needed
---
 setup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 060e675..f67b1f6 100644
--- a/setup.py
+++ b/setup.py
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 import platform
 import sys
+import io
 from distutils.command.build import build
 
 from setuptools import setup
@@ -192,7 +193,7 @@ setup(
     version=__about__["__version__"],
 
     description=__about__["__summary__"],
-    long_description=open("README.rst").read(),
+    long_description=io.open("README.rst", encoding='utf-8').read(),
     url=__about__["__uri__"],
     license=__about__["__license__"],
 

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



More information about the Python-modules-commits mailing list