Gre7g Luterman <[EMAIL PROTECTED]> writes:
> # Check that we're running in Python version 2.1 or higher
> -temp = re.search("^(\d+)\.(\d+)\s", sys.version)
> +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)):
It's much easier to do this via string manipulation. e.g,
if sys.version.split()[0] < '2.1':
Print 'tmda-cgi requires Python version 2.1 or higher.'
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers