From 2b879b34d6cbd8539c785eec8ef415f60b928f86 Mon Sep 17 00:00:00 2001 From: Michael Farrell Date: Wed, 11 Apr 2012 17:22:03 +0930 Subject: allow running the script on python 3.0 - 3.2 (though unsure of compatibility) --- tftpy/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 * -- cgit v1.2.1