Commits

Jason R. Coombs committed a0e2e10

Updated setup script to load docs as UTF-8

Comments (0)

Files changed (1)

 """
 
 import sys
+import codecs
 
+def load(filename):
+    """
+    Read a text file and decode it.
+    """
+    f = codecs.open(filename, encoding='utf-8')
+    try:
+        result = f.read()
+    finally:
+        f.close()
+    return result
 
 setup_params = dict(
     name = 'keyring',
     maintainer = 'Jason R. Coombs',
     maintainer_email = 'jaraco@jaraco.com',
     license="PSF",
-    long_description = open('README').read() + open('CHANGES.txt').read(),
+    long_description = load('README') + load('CHANGES.txt'),
     classifiers = [
         "Development Status :: 5 - Production/Stable",
         "Intended Audience :: Developers",