From 91a8fb14be618d77452fe3204c0498be9708703f Mon Sep 17 00:00:00 2001 From: Sviatoslav Sydorenko Date: Thu, 4 Nov 2021 20:51:00 +0100 Subject: [PATCH] Fix the YTT201 flake8 violation (#667) This approach makes sure that if there's ever Python 4, it wouldn't fall back to the Python 2 behavior silently. Co-authored-by: Abhinav Singh --- proxy/proxy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proxy/proxy.py b/proxy/proxy.py index 5b18d34b..f6f3e2e2 100644 --- a/proxy/proxy.py +++ b/proxy/proxy.py @@ -479,7 +479,7 @@ class Proxy: @staticmethod def is_py3() -> bool: """Exists only to avoid mocking sys.version_info in tests.""" - return sys.version_info[0] == 3 + return sys.version_info[0] != 2 @staticmethod def set_open_file_limit(soft_limit: int) -> None: