blob: 89e1b058f0f894062c0f999d9e6130bac8077265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
--- setup.py.orig 2014-06-20 10:27:26.638779565 +0200
+++ setup.py 2014-06-20 10:27:29.885446151 +0200
@@ -1,4 +1,5 @@
#!/usr/bin/env python
+# -*- coding: utf-8 -*-
from __future__ import print_function
@@ -74,8 +75,12 @@
readme_text = fp.read()
readme_text = readme_text.replace(".. include:: CREDITS.txt", "")
-with open('CREDITS.txt', 'r') as fp:
- credits = fp.read()
+if sys.version_info[0] == 3:
+ with open('CREDITS.txt', 'r', encoding='utf-8') as fp:
+ credits = fp.read()
+elif sys.version_info[0] == 2:
+ with open('CREDITS.txt', 'r') as fp:
+ credits = fp.read().decode('utf-8')
with open('CHANGES.txt', 'r') as fp:
changes_text = fp.read()
|