Mercurial > p > roundup > code
diff roundup/version_check.py @ 6016:9223ed67af05
flake8 cleanup: move module import before statement.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Tue, 31 Dec 2019 21:56:36 -0500 |
| parents | 64b05e24dbd8 |
| children | f72381d300a4 |
line wrap: on
line diff
--- a/roundup/version_check.py Tue Dec 31 21:56:14 2019 -0500 +++ b/roundup/version_check.py Tue Dec 31 21:56:36 2019 -0500 @@ -2,9 +2,10 @@ # Roundup requires Python 2.7+ as mentioned in doc\installation.txt from __future__ import print_function -VERSION_NEEDED = (2,7) +import sys -import sys +VERSION_NEEDED = (2, 7) + if sys.version_info < VERSION_NEEDED: print("Content-Type: text/plain\n") print("Roundup requires Python %s.%s or newer." % VERSION_NEEDED)
