|
8 | 8 | * https://github.com/warner/python-versioneer
|
9 | 9 | * Brian Warner
|
10 | 10 | * License: Public Domain
|
11 |
| -* Compatible With: python2.6, 2.7, 3.2, 3.3, 3.4, and pypy |
| 11 | +* Compatible With: python3.5+, and pypy |
12 | 12 | * [![Latest Version]
|
13 | 13 | (https://pypip.in/version/versioneer/badge.svg?style=flat)
|
14 | 14 | ](https://pypi.org/project/versioneer/)
|
@@ -464,9 +464,10 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
|
464 | 464 | if verbose:
|
465 | 465 | print("unable to find command, tried %s" % (commands,))
|
466 | 466 | return None
|
| 467 | + |
467 | 468 | stdout = p.communicate()[0].strip()
|
468 |
| - if sys.version_info[0] >= 3: |
469 |
| - stdout = stdout.decode() |
| 469 | + stdout = stdout.decode() |
| 470 | + |
470 | 471 | if p.returncode != 0:
|
471 | 472 | if verbose:
|
472 | 473 | print("unable to run %s (error)" % dispcmd)
|
@@ -561,9 +562,10 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False):
|
561 | 562 | if verbose:
|
562 | 563 | print("unable to find command, tried %%s" %% (commands,))
|
563 | 564 | return None
|
| 565 | +
|
564 | 566 | stdout = p.communicate()[0].strip()
|
565 |
| - if sys.version_info[0] >= 3: |
566 |
| - stdout = stdout.decode() |
| 567 | + stdout = stdout.decode() |
| 568 | +
|
567 | 569 | if p.returncode != 0:
|
568 | 570 | if verbose:
|
569 | 571 | print("unable to run %%s (error)" %% dispcmd)
|
|
0 commit comments