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 <mailsforabhinav@gmail.com>
This commit is contained in:
Sviatoslav Sydorenko 2021-11-04 20:51:00 +01:00 committed by GitHub
parent a7cdcc81ce
commit 91a8fb14be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: