Mercurial > p > roundup > code
changeset 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 | af1067e0f6d9 |
| children | f023edbeb24d |
| files | roundup/version_check.py |
| diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
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)
