Additional CLI python version checking.

This commit is contained in:
Jim Miller 2017-12-18 14:15:50 -06:00
parent 56a60471d2
commit fd2dddcd30

View file

@ -32,8 +32,8 @@ import cookielib as cl
version="2.20.0"
if sys.version_info < (2, 5):
print 'This program requires Python 2.5 or newer.'
if sys.version_info < (2, 5) or sys.version_info > (3,0):
print('This program requires Python 2.5 or newer. Python 3 is not supported.')
sys.exit(1)
if sys.version_info >= (2, 7):