summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan Cordasco <graffatcolmingov@gmail.com>2016-07-26 19:55:54 -0500
committerIan Cordasco <graffatcolmingov@gmail.com>2016-07-26 19:55:54 -0500
commit80450ff0976784b1bf658bbc05cca5c8c8405950 (patch)
tree2d156cc7e8e5b1202b27004304988bcffd95731a /src
parent39361412090da69b84cc0af446cec88235a1630b (diff)
downloadflake8-80450ff0976784b1bf658bbc05cca5c8c8405950.tar.gz
Ensure we're only on Python 2.7
As FichteFoll pointed out on IRC, this line could include Python 3s less than 3.2 as well.
Diffstat (limited to 'src')
-rw-r--r--src/flake8/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/utils.py b/src/flake8/utils.py
index 1e1eaa0..1e18316 100644
--- a/src/flake8/utils.py
+++ b/src/flake8/utils.py
@@ -173,7 +173,7 @@ def can_run_multiprocessing_on_windows():
:rtype:
bool
"""
- is_new_enough_python27 = sys.version_info >= (2, 7, 11)
+ is_new_enough_python27 = (2, 7, 11) <= sys.version_info < (3, 0)
is_new_enough_python3 = sys.version_info > (3, 2)
return is_new_enough_python27 or is_new_enough_python3