8000 use sys.version_info instead of sys.version · drinkingjava/python-versioneer@e0a54a2 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit e0a54a2

Browse files
committed
use sys.version_info instead of sys.version
Thanks to @svisser for the catch. Closes python-versioneer#51.
1 parent da60061 commit e0a54a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/subprocess_helper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
2424
print("unable to find command, tried %s" % (commands,))
2525
return None
2626
stdout = p.communicate()[0].strip()
27-
if sys.version >= '3':
27+
if sys.version_info[0] >= 3:
2828
stdout = stdout.decode()
2929
if p.returncode != 0:
3030
if verbose:

0 commit comments

Comments
 (0)
0