Skip to content

Commit

Permalink
Ensure we're only on Python 2.7
Browse files Browse the repository at this point in the history
As FichteFoll pointed out on IRC, this line could include Python 3s
less than 3.2 as well.
  • Loading branch information
sigmavirus24 committed Jul 27, 2016
1 parent 3936141 commit 80450ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/flake8/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 80450ff

Please sign in to comment.