15 lines
533 B
Diff
15 lines
533 B
Diff
diff --git a/setup.py b/setup.py
|
|
index 976a42c..3604dd7 100755
|
|
--- a/setup.py
|
|
+++ b/setup.py
|
|
@@ -558,6 +558,9 @@ else: # INTERACTIVE_MODE
|
|
|
|
if file_path.endswith('.gz'):
|
|
nickname = gzip.GzipFile(file_path, 'r').read(4096)
|
|
+ if sys.version_info[0] > 2:
|
|
+ nickname = nickname.decode('utf-8')
|
|
+
|
|
else:
|
|
nickname = open(file_path, 'r').read(4096)
|
|
|