diff --git a/pylint/checkers/misc.py b/pylint/checkers/misc.py index eb76c8c288..509ed9c7b2 100644 --- a/pylint/checkers/misc.py +++ b/pylint/checkers/misc.py @@ -171,7 +171,6 @@ def process_tokens(self, tokens): except PragmaParserError: # Printing useful information dealing with this error is done in the lint package pass - values = [_val.upper() for _val in values] if set(values) & set(self.config.notes): continue except ValueError: diff --git a/pylint/constants.py b/pylint/constants.py index d3a0392df5..8e48bda939 100644 --- a/pylint/constants.py +++ b/pylint/constants.py @@ -1,18 +1,12 @@ # Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html # For details: https://github.com/PyCQA/pylint/blob/master/COPYING -import re import sys from astroid.__pkginfo__ import version as astroid_version from pylint.__pkginfo__ import version as pylint_version -# Allow stopping after the first semicolon/hash encountered, -# so that an option can be continued with the reasons -# why it is active or disabled. -OPTION_RGX = re.compile(r"\s*#.*\bpylint:\s*([^;#]+)[;#]{0,1}") - PY_EXTS = (".py", ".pyc", ".pyo", ".pyw", ".so", ".dll") MSG_STATE_CONFIDENCE = 2