diff options
author | Hugo van Kemenade <hugovk@users.noreply.github.com> | 2019-09-12 14:10:27 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2019-09-12 06:10:27 -0500 |
commit | b72c0dd9a3ee5c992f94937b58de3b2153f4624d (patch) | |
tree | 1161dcf81f4c8a81c1af254e164d92596437f3d1 /pylint/checkers/classes.py | |
parent | 0b947809fc018963fce1745cda89649e6d66d0c7 (diff) | |
download | pylint-git-b72c0dd9a3ee5c992f94937b58de3b2153f4624d.tar.gz |
Remove redundant compatibility code (#3097)
We no longer support Python 2 so we can remove
the compatibility code we had in place for that version.
Diffstat (limited to 'pylint/checkers/classes.py')
-rw-r--r-- | pylint/checkers/classes.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pylint/checkers/classes.py b/pylint/checkers/classes.py index 80c8f1a1f..b8ff1712d 100644 --- a/pylint/checkers/classes.py +++ b/pylint/checkers/classes.py @@ -29,10 +29,7 @@ """classes checker for Python code """ -from __future__ import generators - import collections -import sys from itertools import chain, zip_longest import astroid @@ -66,10 +63,7 @@ from pylint.checkers.utils import ( from pylint.interfaces import IAstroidChecker from pylint.utils import get_global_option -if sys.version_info >= (3, 0): - NEXT_METHOD = "__next__" -else: - NEXT_METHOD = "next" +NEXT_METHOD = "__next__" INVALID_BASE_CLASSES = {"bool", "range", "slice", "memoryview"} BUILTIN_DECORATORS = {"builtins.property", "builtins.classmethod"} |