Mercurial > p > roundup > code
view roundup/version_check.py @ 5243:c193f1c33bd4
Change floor version of Python to 2.7.2.
John Rouillard notes that he already checked in a change that requires
2.7.0.
| author | Eric S. Raymond <esr@thyrsus.com> |
|---|---|
| date | Thu, 24 Aug 2017 11:26:46 -0400 |
| 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)
