Commits

David Jean Louis  committed 017e093

This time for real: fixed issue #41

  • Participants
  • Parent commits 24e06a8

Comments (0)

Files changed (1)

 maintainer = ' '.join(author_data[0:-1])
 maintainer_email = author_data[-1]
 desc = 'A library to manipulate gettext files (po and mo files).'
-long_desc = '''
+
+if polib.PY3:
+    mode = 'rb'
+else:
+    mode = 'r'
+
+long_desc = r'''
 .. contents:: Table of Contents
 
 %s
 
 %s
 
-''' % (
-    codecs.open('README.rst', 'r', 'utf-8').read(),
-    codecs.open('CHANGELOG', 'r', 'utf-8').read()
-)
+''' % (open('README.rst', mode).read(), open('CHANGELOG', mode).read())
 
 if __name__ == '__main__':
     setup(