more python3 fixes

This commit is contained in:
mutantmonkey
2011-09-22 15:04:19 -04:00
parent baf5403066
commit 800b78a02f
5 changed files with 12 additions and 12 deletions

4
phenny
View File

@@ -17,8 +17,8 @@ from textwrap import dedent as trim
dotdir = os.path.expanduser('~/.phenny')
def check_python_version():
if sys.version_info < (2, 4):
error = 'Error: Requires Python 2.4 or later, from www.python.org'
if sys.version_info < (3, 0):
error = 'Error: Requires Python 3.0 or later, from www.python.org'
print(error, file=sys.stderr)
sys.exit(1)