From 80450ff0976784b1bf658bbc05cca5c8c8405950 Mon Sep 17 00:00:00 2001 From: Ian Cordasco Date: Tue, 26 Jul 2016 19:55:54 -0500 Subject: [PATCH] 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. --- src/flake8/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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