[Python-modules-commits] [python-xapian-haystack] 03/05: Use io.open to read UTF-8 encoded README file.

Michael Fladischer fladi at moszumanska.debian.org
Mon Mar 20 07:11:54 UTC 2017


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

fladi pushed a commit to branch master
in repository python-xapian-haystack.

commit e7435bc6d9145add99586c4d7c38fd141ceee898
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Sun Mar 19 20:32:37 2017 +0100

    Use io.open to read UTF-8 encoded README file.
---
 setup.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index 517b445..2506306 100644
--- a/setup.py
+++ b/setup.py
@@ -2,11 +2,12 @@
 from __future__ import unicode_literals
 
 import os
+import io
 from distutils.core import setup
 
 
 def read(fname):
-    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+    return io.open(os.path.join(os.path.dirname(__file__), fname), encoding='utf-8').read()
 
 setup(
     name='xapian-haystack',

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



More information about the Python-modules-commits mailing list