We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6f484f commit ed0619eCopy full SHA for ed0619e
setup.py
@@ -1,8 +1,13 @@
1
# -*- coding: utf-8 -*-
2
from distutils.core import setup
3
+import sys
4
-with open("README.rst", encoding="utf-8") as rfile:
5
- long_description = rfile.read()
+if sys.version_info >= (3,0):
6
+ with open("README.rst", encoding="utf-8") as rfile:
7
+ long_description = rfile.read()
8
+else: # encoding not compatible with python2
9
+ with open("README.rst") as rfile:
10
11
12
setup(
13
name="python-libnmap",
0 commit comments