Update of /cvsroot/tmda/tmda/contrib/cgi
In directory sc8-pr-cvs1:/tmp/cvs-serv10022
Modified Files:
compile
Log Message:
Ummmmm... I guess I just need to make things more complex than they need to be,
eh?
Index: compile
===================================================================
RCS file: /cvsroot/tmda/tmda/contrib/cgi/compile,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- compile 24 Mar 2003 20:18:05 -0000 1.9
+++ compile 24 Mar 2003 22:55:59 -0000 1.10
@@ -134,10 +134,7 @@
Mode = "no-su"
# Check that we're running in Python version 2.1 or higher
-temp = re.search("^(\d+)\.(\d+)[\.\s]", sys.version)
-major = int(temp.group(1))
-minor = int(temp.group(2))
-if (major < 2) or ((major == 2) and (minor < 1)):
+if sys.version.split()[0] < '2.1':
print """Compile terminated. tmda-cgi requires Python version 2.1 or higher.
Either install the latest version of Python or specify the appropriate Python
_______________________________________
tmda-cvs mailing list
http://tmda.net/lists/listinfo/tmda-cvs