mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 18:46:52 +00:00
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.
This commit is contained in:
parent
3936141209
commit
80450ff097
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue