changeset 19:2a9ee0edea6e

Use codecs to read utf-8 files
author Cédric Krier <ced@b2ck.com>
date Mon, 17 Aug 2015 17:02:00 +0200
parents cd07f69ac408
children 667ccb8f2e31
files setup.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/setup.py	Tue Jun 23 16:22:40 2015 +0200
+++ b/setup.py	Mon Aug 17 17:02:00 2015 +0200
@@ -28,11 +28,13 @@
 # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 import os
 import re
+import codecs
 from setuptools import setup, find_packages
 
 
 def read(fname):
-    return open(os.path.join(os.path.dirname(__file__), fname)).read()
+    return codecs.open(
+        os.path.join(os.path.dirname(__file__), fname), 'r', 'utf-8').read()
 
 
 def get_version():