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:
parent
a7cdcc81ce
commit
91a8fb14be
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue