Skip to content

Commit

Permalink
Added check for python > 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
paolo-projects authored Sep 28, 2019
1 parent 6161d78 commit 71028b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gettools.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ def reporthook(count, block_size, total_size):

def main():
# Check minimal Python version is 2.7
if sys.version_info < (2, 7):
sys.stderr.write('You need Python 2.7 or later\n')
if sys.version_info < (3, 0):
sys.stderr.write('You need Python 3 or later\n')
sys.exit(1)

dest = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit 71028b0

Please sign in to comment.