view roundup/version_check.py @ 5182:dc657fbbc790

- issue2550933 - Fix Traceback in cgi/templating.py when a string is passed to PasswordHTMLProperty::plain. (John Rouillard) This is a more pythonic patch than presented in the issue. Try the original code and if it fails take alternative action.
author John Rouillard <rouilj@ieee.org>
date Sat, 11 Feb 2017 17:20:47 -0500
parents 0c2cad65ebba
children 4566360871dc
line wrap: on
line source

#!/usr/bin/env python

# Roundup requires Python 2.5+ as mentioned in doc\installation.txt
VERSION_NEEDED = (2,5)

import sys
if sys.version_info < VERSION_NEEDED:
    print "Content-Type: text/plain\n"
    print "Roundup requires Python %s.%s or newer." % VERSION_NEEDED
    sys.exit(0)

Roundup Issue Tracker: http://roundup-tracker.org/