diff options
author | Michael Farrell <micolous+git@gmail.com> | 2012-04-11 17:22:03 +0930 |
---|---|---|
committer | Michael Farrell <micolous+git@gmail.com> | 2012-04-11 17:22:03 +0930 |
commit | 2b879b34d6cbd8539c785eec8ef415f60b928f86 (patch) | |
tree | 59d9f734aa4baaa4851a8abc344950a4f68d9c76 | |
parent | 05e56b66a4600a5b9194f47b7f348e3278da69b6 (diff) | |
download | tftpy-2b879b34d6cbd8539c785eec8ef415f60b928f86.tar.gz |
allow running the script on python 3.0 - 3.2 (though unsure of compatibility)
-rw-r--r-- | tftpy/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tftpy/__init__.py b/tftpy/__init__.py index e8ef87f..3060ed6 100644 --- a/tftpy/__init__.py +++ b/tftpy/__init__.py @@ -12,7 +12,7 @@ import sys # Make sure that this is at least Python 2.3 verlist = sys.version_info -if not verlist[0] >= 2 or not verlist[1] >= 3: +if not (verlist[0] > 2 or (verlist[0] == 2 and verlist[1] >= 3)): raise AssertionError, "Requires at least Python 2.3" from TftpShared import * |