Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pycodestyle for openSUSE:Factory checked in at 2022-12-15 19:54:53 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pycodestyle (Old) and /work/SRC/openSUSE:Factory/.python-pycodestyle.new.1835 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pycodestyle" Thu Dec 15 19:54:53 2022 rev:14 rq: version:2.9.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pycodestyle/python-pycodestyle.changes 2022-12-15 19:25:02.071998045 +0100 +++ /work/SRC/openSUSE:Factory/.python-pycodestyle.new.1835/python-pycodestyle.changes 2022-12-15 19:54:54.222160271 +0100 @@ -2,10 +1,0 @@ -Tue Dec 13 16:26:21 UTC 2022 - Yogalakshmi Arunachalam <[email protected]> - -- Update to 2.10.0 - * Changes: - E231: allow trailing comma inside 1-tuples in []. PR #1108. - W601, W602, W603, W604: removed (no longer relevant in python 3). PR #1111. - E741: also apply to lambdas. PR #1106. - E741: fix false positive for comparison operators. PR #1118. - -------------------------------------------------------------------- Old: ---- pycodestyle-2.10.0.tar.gz New: ---- pycodestyle-2.9.1.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pycodestyle.spec ++++++ --- /var/tmp/diff_new_pack.uu89eo/_old 2022-12-15 19:54:54.818163654 +0100 +++ /var/tmp/diff_new_pack.uu89eo/_new 2022-12-15 19:54:54.826163699 +0100 @@ -19,7 +19,7 @@ %{?!python_module:%define python_module() python3-%{**}} %global skip_python2 1 Name: python-pycodestyle -Version: 2.10.0 +Version: 2.9.1 Release: 0 Summary: Python style guide checker License: MIT ++++++ pycodestyle-2.10.0.tar.gz -> pycodestyle-2.9.1.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/CHANGES.txt new/pycodestyle-2.9.1/CHANGES.txt --- old/pycodestyle-2.10.0/CHANGES.txt 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/CHANGES.txt 2022-08-04 01:12:27.000000000 +0200 @@ -1,22 +1,12 @@ Changelog ========= -2.10.0 (2022-11-23) -------------------- - -Changes: - -* E231: allow trailing comma inside 1-tuples in `[]`. PR #1108. -* W601, W602, W603, W604: removed (no longer relevant in python 3). PR #1111. -* E741: also apply to lambdas. PR #1106. -* E741: fix false positive for comparison operators. PR #1118. - 2.9.1 (2022-08-03) ------------------ Changes: -* E275: fix false positive for yield expressions. PR #1091. +* E275: fix false positive for yield expressions. 2.9.0 (2022-07-30) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/PKG-INFO new/pycodestyle-2.9.1/PKG-INFO --- old/pycodestyle-2.10.0/PKG-INFO 2022-11-23 19:27:04.145973700 +0100 +++ new/pycodestyle-2.9.1/PKG-INFO 2022-08-04 01:13:14.211308700 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pycodestyle -Version: 2.10.0 +Version: 2.9.1 Summary: Python style guide checker Home-page: https://pycodestyle.pycqa.org/ Author: Johann C. Rocholl @@ -10,6 +10,7 @@ License: Expat license Project-URL: Changes, https://pycodestyle.pycqa.org/en/latest/developer.html#changes Keywords: pycodestyle,pep8,PEP 8,PEP-8,PEP8 +Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Intended Audience :: Developers @@ -93,9 +94,11 @@ optparse.py:69:11: E401 multiple imports on one line optparse.py:77:1: E302 expected 2 blank lines, found 1 optparse.py:88:5: E301 expected 1 blank line, found 0 + optparse.py:222:34: W602 deprecated form of raising exception optparse.py:347:31: E211 whitespace before '(' optparse.py:357:17: E201 whitespace after '{' optparse.py:472:29: E221 multiple spaces before operator + optparse.py:544:21: W601 .has_key() is deprecated, use 'in' You can also make ``pycodestyle.py`` show the source code for each error, and even the relevant text from PEP 8:: @@ -123,6 +126,8 @@ 165 E303 too many blank lines (4) 325 E401 multiple imports on one line 3615 E501 line too long (82 characters) + 612 W601 .has_key() is deprecated, use 'in' + 1188 W602 deprecated form of raising exception Links ----- @@ -135,22 +140,12 @@ Changelog ========= -2.10.0 (2022-11-23) -------------------- - -Changes: - -* E231: allow trailing comma inside 1-tuples in `[]`. PR #1108. -* W601, W602, W603, W604: removed (no longer relevant in python 3). PR #1111. -* E741: also apply to lambdas. PR #1106. -* E741: fix false positive for comparison operators. PR #1118. - 2.9.1 (2022-08-03) ------------------ Changes: -* E275: fix false positive for yield expressions. PR #1091. +* E275: fix false positive for yield expressions. 2.9.0 (2022-07-30) ------------------ @@ -1080,3 +1075,5 @@ ---------------- * First release. + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/README.rst new/pycodestyle-2.9.1/README.rst --- old/pycodestyle-2.10.0/README.rst 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/README.rst 2022-07-30 19:52:35.000000000 +0200 @@ -65,9 +65,11 @@ optparse.py:69:11: E401 multiple imports on one line optparse.py:77:1: E302 expected 2 blank lines, found 1 optparse.py:88:5: E301 expected 1 blank line, found 0 + optparse.py:222:34: W602 deprecated form of raising exception optparse.py:347:31: E211 whitespace before '(' optparse.py:357:17: E201 whitespace after '{' optparse.py:472:29: E221 multiple spaces before operator + optparse.py:544:21: W601 .has_key() is deprecated, use 'in' You can also make ``pycodestyle.py`` show the source code for each error, and even the relevant text from PEP 8:: @@ -95,6 +97,8 @@ 165 E303 too many blank lines (4) 325 E401 multiple imports on one line 3615 E501 line too long (82 characters) + 612 W601 .has_key() is deprecated, use 'in' + 1188 W602 deprecated form of raising exception Links ----- diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/docs/intro.rst new/pycodestyle-2.9.1/docs/intro.rst --- old/pycodestyle-2.10.0/docs/intro.rst 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/docs/intro.rst 2022-07-30 20:35:01.000000000 +0200 @@ -71,9 +71,11 @@ optparse.py:69:11: E401 multiple imports on one line optparse.py:77:1: E302 expected 2 blank lines, found 1 optparse.py:88:5: E301 expected 1 blank line, found 0 + optparse.py:222:34: W602 deprecated form of raising exception optparse.py:347:31: E211 whitespace before '(' optparse.py:357:17: E201 whitespace after '{' optparse.py:472:29: E221 multiple spaces before operator + optparse.py:544:21: W601 .has_key() is deprecated, use 'in' You can also make ``pycodestyle.py`` show the source code for each error, and even the relevant text from PEP 8:: @@ -101,6 +103,8 @@ 165 E303 too many blank lines (4) 325 E401 multiple imports on one line 3615 E501 line too long (82 characters) + 612 W601 .has_key() is deprecated, use 'in' + 1188 W602 deprecated form of raising exception You can also make ``pycodestyle.py`` show the error text in different formats by using ``--format`` having options default/pylint/custom:: @@ -196,7 +200,7 @@ [pycodestyle] count = False - ignore = E226,E302,E71 + ignore = E226,E302,E41 max-line-length = 160 statistics = True @@ -411,6 +415,14 @@ +------------+----------------------------------------------------------------------+ | **W6** | *Deprecation warning* | +------------+----------------------------------------------------------------------+ +| W601 | .has_key() is deprecated, use 'in' | ++------------+----------------------------------------------------------------------+ +| W602 | deprecated form of raising exception | ++------------+----------------------------------------------------------------------+ +| W603 | '<>' is deprecated, use '!=' | ++------------+----------------------------------------------------------------------+ +| W604 | backticks are deprecated, use 'repr()' | ++------------+----------------------------------------------------------------------+ | W605 | invalid escape sequence '\x' | +------------+----------------------------------------------------------------------+ | W606 | 'async' and 'await' are reserved keywords starting with Python 3.7 | diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/pycodestyle.egg-info/PKG-INFO new/pycodestyle-2.9.1/pycodestyle.egg-info/PKG-INFO --- old/pycodestyle-2.10.0/pycodestyle.egg-info/PKG-INFO 2022-11-23 19:27:04.000000000 +0100 +++ new/pycodestyle-2.9.1/pycodestyle.egg-info/PKG-INFO 2022-08-04 01:13:13.000000000 +0200 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pycodestyle -Version: 2.10.0 +Version: 2.9.1 Summary: Python style guide checker Home-page: https://pycodestyle.pycqa.org/ Author: Johann C. Rocholl @@ -10,6 +10,7 @@ License: Expat license Project-URL: Changes, https://pycodestyle.pycqa.org/en/latest/developer.html#changes Keywords: pycodestyle,pep8,PEP 8,PEP-8,PEP8 +Platform: UNKNOWN Classifier: Development Status :: 5 - Production/Stable Classifier: Environment :: Console Classifier: Intended Audience :: Developers @@ -93,9 +94,11 @@ optparse.py:69:11: E401 multiple imports on one line optparse.py:77:1: E302 expected 2 blank lines, found 1 optparse.py:88:5: E301 expected 1 blank line, found 0 + optparse.py:222:34: W602 deprecated form of raising exception optparse.py:347:31: E211 whitespace before '(' optparse.py:357:17: E201 whitespace after '{' optparse.py:472:29: E221 multiple spaces before operator + optparse.py:544:21: W601 .has_key() is deprecated, use 'in' You can also make ``pycodestyle.py`` show the source code for each error, and even the relevant text from PEP 8:: @@ -123,6 +126,8 @@ 165 E303 too many blank lines (4) 325 E401 multiple imports on one line 3615 E501 line too long (82 characters) + 612 W601 .has_key() is deprecated, use 'in' + 1188 W602 deprecated form of raising exception Links ----- @@ -135,22 +140,12 @@ Changelog ========= -2.10.0 (2022-11-23) -------------------- - -Changes: - -* E231: allow trailing comma inside 1-tuples in `[]`. PR #1108. -* W601, W602, W603, W604: removed (no longer relevant in python 3). PR #1111. -* E741: also apply to lambdas. PR #1106. -* E741: fix false positive for comparison operators. PR #1118. - 2.9.1 (2022-08-03) ------------------ Changes: -* E275: fix false positive for yield expressions. PR #1091. +* E275: fix false positive for yield expressions. 2.9.0 (2022-07-30) ------------------ @@ -1080,3 +1075,5 @@ ---------------- * First release. + + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/pycodestyle.egg-info/SOURCES.txt new/pycodestyle-2.9.1/pycodestyle.egg-info/SOURCES.txt --- old/pycodestyle-2.10.0/pycodestyle.egg-info/SOURCES.txt 2022-11-23 19:27:04.000000000 +0100 +++ new/pycodestyle-2.9.1/pycodestyle.egg-info/SOURCES.txt 2022-08-04 01:13:14.000000000 +0200 @@ -41,7 +41,6 @@ testsuite/E71.py testsuite/E72.py testsuite/E73.py -testsuite/E74.py testsuite/E90.py testsuite/W19.py testsuite/W29.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/pycodestyle.py new/pycodestyle-2.9.1/pycodestyle.py --- old/pycodestyle-2.10.0/pycodestyle.py 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/pycodestyle.py 2022-08-04 01:12:27.000000000 +0200 @@ -47,9 +47,7 @@ 900 syntax error """ import bisect -import configparser import inspect -import io import keyword import os import re @@ -61,6 +59,12 @@ from functools import lru_cache from optparse import OptionParser +try: + from configparser import RawConfigParser + from io import TextIOWrapper +except ImportError: + from ConfigParser import RawConfigParser + # this is a performance hack. see https://bugs.python.org/issue43014 if ( sys.version_info < (3, 10) and @@ -68,7 +72,7 @@ ): # pragma: no cover (<py310) tokenize._compile = lru_cache()(tokenize._compile) # type: ignore -__version__ = '2.10.0' +__version__ = '2.9.1' DEFAULT_EXCLUDE = '.svn,CVS,.bzr,.hg,.git,__pycache__,.tox' DEFAULT_IGNORE = 'E121,E123,E126,E226,E24,E704,W503,W504' @@ -120,6 +124,8 @@ BENCHMARK_KEYS = ['directories', 'files', 'logical lines', 'physical lines'] INDENT_REGEX = re.compile(r'([ \t]*)') +RAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,') +RERAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,.*,\s*\w+\s*$') ERRORCODE_REGEX = re.compile(r'\b[A-Z]\d{3}\b') DOCSTRING_REGEX = re.compile(r'u?r?["\']') EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[\[({][ \t]|[ \t][\]}),;:](?!=)') @@ -500,7 +506,6 @@ Okay: [a, b] Okay: (3,) - Okay: a[3,] = 1 Okay: a[1:4] Okay: a[:4] Okay: a[1:] @@ -518,7 +523,7 @@ if char == ':' and before.count('[') > before.count(']') and \ before.rfind('{') < before.rfind('['): continue # Slice syntax, no space required - if char == ',' and next_char in ')]': + if char == ',' and next_char == ')': continue # Allow tuple with only one element: (3,) if char == ':' and next_char == '=' and sys.version_info >= (3, 8): continue # Allow assignment expression @@ -1488,19 +1493,14 @@ E741: I = 42 Variables can be bound in several other contexts, including class - and function definitions, lambda functions, 'global' and 'nonlocal' - statements, exception handlers, and 'with' and 'for' statements. + and function definitions, 'global' and 'nonlocal' statements, + exception handlers, and 'with' and 'for' statements. In addition, we have a special handling for function parameters. Okay: except AttributeError as o: Okay: with lock as L: Okay: foo(l=12) - Okay: foo(l=I) Okay: for a in foo(l=12): - Okay: lambda arg: arg * l - Okay: lambda a=l[I:5]: None - Okay: lambda x=a.I: None - Okay: if l >= 12: E741: except AttributeError as O: E741: with lock as l: E741: global I @@ -1509,39 +1509,32 @@ E741: def foo(l=12): E741: l = foo(l=12) E741: for l in range(10): - E741: [l for l in lines if l] - E741: lambda l: None - E741: lambda a=x[1:5], l: None - E741: lambda **l: - E741: def f(**l): E742: class I(object): E743: def l(x): """ - func_depth = None # set to brace depth if 'def' or 'lambda' is found - seen_colon = False # set to true if we're done with function parameters - brace_depth = 0 + is_func_def = False # Set to true if 'def' is found + parameter_parentheses_level = 0 idents_to_avoid = ('l', 'O', 'I') prev_type, prev_text, prev_start, prev_end, __ = tokens[0] - for index in range(1, len(tokens)): - token_type, text, start, end, line = tokens[index] + for token_type, text, start, end, line in tokens[1:]: ident = pos = None # find function definitions - if prev_text in {'def', 'lambda'}: - func_depth = brace_depth - seen_colon = False - elif ( - func_depth is not None and - text == ':' and - brace_depth == func_depth - ): - seen_colon = True + if prev_text == 'def': + is_func_def = True # update parameter parentheses level - if text in '([{': - brace_depth += 1 - elif text in ')]}': - brace_depth -= 1 + if parameter_parentheses_level == 0 and \ + prev_type == tokenize.NAME and \ + token_type == tokenize.OP and text == '(': + parameter_parentheses_level = 1 + elif parameter_parentheses_level > 0 and \ + token_type == tokenize.OP: + if text == '(': + parameter_parentheses_level += 1 + elif text == ')': + parameter_parentheses_level -= 1 # identifiers on the lhs of an assignment operator - if text == ':=' or (text == '=' and brace_depth == 0): + if token_type == tokenize.OP and '=' in text and \ + parameter_parentheses_level == 0: if prev_text in idents_to_avoid: ident = prev_text pos = prev_start @@ -1551,16 +1544,11 @@ if text in idents_to_avoid: ident = text pos = start - # function / lambda parameter definitions - if ( - func_depth is not None and - not seen_colon and - index < len(tokens) - 1 and tokens[index + 1][1] in ':,=)' and - prev_text in {'lambda', ',', '*', '**', '('} and - text in idents_to_avoid - ): - ident = text - pos = start + # function parameter definitions + if is_func_def: + if text in idents_to_avoid: + ident = text + pos = start if prev_text == 'class': if text in idents_to_avoid: yield start, "E742 ambiguous class definition '%s'" % text @@ -1569,11 +1557,65 @@ yield start, "E743 ambiguous function definition '%s'" % text if ident: yield pos, "E741 ambiguous variable name '%s'" % ident + prev_type = token_type prev_text = text prev_start = start @register_check +def python_3000_has_key(logical_line, noqa): + r"""The {}.has_key() method is removed in Python 3: use the 'in' + operator. + + Okay: if "alph" in d:\n print d["alph"] + W601: assert d.has_key('alph') + """ + pos = logical_line.find('.has_key(') + if pos > -1 and not noqa: + yield pos, "W601 .has_key() is deprecated, use 'in'" + + +@register_check +def python_3000_raise_comma(logical_line): + r"""When raising an exception, use "raise ValueError('message')". + + The older form is removed in Python 3. + + Okay: raise DummyError("Message") + W602: raise DummyError, "Message" + """ + match = RAISE_COMMA_REGEX.match(logical_line) + if match and not RERAISE_COMMA_REGEX.match(logical_line): + yield match.end() - 1, "W602 deprecated form of raising exception" + + +@register_check +def python_3000_not_equal(logical_line): + r"""New code should always use != instead of <>. + + The older syntax is removed in Python 3. + + Okay: if a != 'no': + W603: if a <> 'no': + """ + pos = logical_line.find('<>') + if pos > -1: + yield pos, "W603 '<>' is deprecated, use '!='" + + +@register_check +def python_3000_backticks(logical_line): + r"""Use repr() instead of backticks in Python 3. + + Okay: val = repr(1 + 2) + W604: val = `1 + 2` + """ + pos = logical_line.find('`') + if pos > -1: + yield pos, "W604 backticks are deprecated, use 'repr()'" + + +@register_check def python_3000_invalid_escape_sequence(logical_line, tokens, noqa): r"""Invalid escape sequences are deprecated in Python 3.6. @@ -1770,7 +1812,7 @@ def stdin_get_value(): """Read the value from stdin.""" - return io.TextIOWrapper(sys.stdin.buffer, errors='ignore').read() + return TextIOWrapper(sys.stdin.buffer, errors='ignore').read() noqa = lru_cache(512)(re.compile(r'# no(?:qa|pep8)\b', re.I).search) @@ -2559,7 +2601,7 @@ merged together (in that order) using the read method of ConfigParser. """ - config = configparser.RawConfigParser() + config = RawConfigParser() cli_conf = options.config diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/testsuite/E74.py new/pycodestyle-2.9.1/testsuite/E74.py --- old/pycodestyle-2.10.0/testsuite/E74.py 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/testsuite/E74.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -#: E741:1:8 -lambda l: dict(zip(l, range(len(l)))) -#: E741:1:7 E704:1:1 -def f(l): print(l, l, l) -#: E741:2:12 -x = ( - lambda l: dict(zip(l, range(len(l)))), -) -#: E741:2:12 E741:3:12 -x = ( - lambda l: dict(zip(l, range(len(l)))), - lambda l: dict(zip(l, range(len(l)))), -) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/testsuite/W60.py new/pycodestyle-2.9.1/testsuite/W60.py --- old/pycodestyle-2.10.0/testsuite/W60.py 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/testsuite/W60.py 2022-07-30 19:52:35.000000000 +0200 @@ -1,3 +1,18 @@ +#: W601 +if a.has_key("b"): + print a +#: W602 +raise DummyError, "Message" +#: W602 +raise ValueError, "hello %s %s" % (1, 2) +#: Okay +raise type_, val, tb +raise Exception, Exception("f"), t +#: W603 +if x <> 0: + x = 0 +#: W604 +val = `1 + 2` #: W605:1:10 regex = '\.png$' #: W605:2:1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/testsuite/python38.py new/pycodestyle-2.9.1/testsuite/python38.py --- old/pycodestyle-2.10.0/testsuite/python38.py 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/testsuite/python38.py 2022-07-30 20:16:16.000000000 +0200 @@ -53,9 +53,3 @@ #: E221:1:6 E221:1:19 if (x := 1) == (y := 2): pass -#: E741 -while l := 1: - pass -#: E741 -if (l := 1): - pass diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pycodestyle-2.10.0/testsuite/test_shell.py new/pycodestyle-2.9.1/testsuite/test_shell.py --- old/pycodestyle-2.10.0/testsuite/test_shell.py 2022-11-23 19:26:34.000000000 +0100 +++ new/pycodestyle-2.9.1/testsuite/test_shell.py 2022-07-30 19:52:35.000000000 +0200 @@ -1,5 +1,4 @@ # -*- coding: utf-8 -*- -import configparser import os.path import sys import unittest @@ -16,7 +15,7 @@ self._saved_stdout = sys.stdout self._saved_stderr = sys.stderr self._saved_pconfig = pycodestyle.PROJECT_CONFIG - self._saved_cpread = configparser.RawConfigParser._read + self._saved_cpread = pycodestyle.RawConfigParser._read self._saved_stdin_get_value = pycodestyle.stdin_get_value self._config_filenames = [] self.stdin = '' @@ -26,7 +25,7 @@ def fake_config_parser_read(cp, fp, filename): self._config_filenames.append(filename) - configparser.RawConfigParser._read = fake_config_parser_read + pycodestyle.RawConfigParser._read = fake_config_parser_read pycodestyle.stdin_get_value = self.stdin_get_value def tearDown(self): @@ -34,7 +33,7 @@ sys.stdout = self._saved_stdout sys.stderr = self._saved_stderr pycodestyle.PROJECT_CONFIG = self._saved_pconfig - configparser.RawConfigParser._read = self._saved_cpread + pycodestyle.RawConfigParser._read = self._saved_cpread pycodestyle.stdin_get_value = self._saved_stdin_get_value def stdin_get_value(self):
