We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11d0860 commit 4f08815Copy full SHA for 4f08815
setup.py
@@ -14,6 +14,9 @@
14
# Update when tagging a new release.
15
FALLBACK_VERSION = '3.0a2.post0'
16
17
+# determine if we run with Python 3.
18
+PY3 = (sys.version_info[0] == 3)
19
+
20
# versioncfgfile holds version data for git commit hash and date.
21
# It must reside in the same directory as version.py.
22
MYDIR = os.path.dirname(os.path.abspath(__file__))
@@ -35,7 +38,7 @@ def gitinfo():
35
38
36
39
37
40
def getversioncfg():
- if sys.version_info[0] >= 3:
41
+ if PY3:
42
from configparser import RawConfigParser
43
else:
44
from ConfigParser import RawConfigParser
0 commit comments