]> git.pld-linux.org Git - packages/python-pep8.git/blob - python-pep8-nestedset.patch
- rediff patches
[packages/python-pep8.git] / python-pep8-nestedset.patch
1 diff -urNp -x '*.orig' pep8-1.7.1.org/pep8.py pep8-1.7.1/pep8.py
2 --- pep8-1.7.1.org/pep8.py      2017-10-24 16:38:06.000000000 +0200
3 +++ pep8-1.7.1/pep8.py  2021-03-03 12:58:18.010231361 +0100
4 @@ -107,7 +107,7 @@ RAISE_COMMA_REGEX = re.compile(r'raise\s
5  RERAISE_COMMA_REGEX = re.compile(r'raise\s+\w+\s*,.*,\s*\w+\s*$')
6  ERRORCODE_REGEX = re.compile(r'\b[A-Z]\d{3}\b')
7  DOCSTRING_REGEX = re.compile(r'u?r?["\']')
8 -EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')
9 +EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[\[({] | [\]}),;:]')
10  WHITESPACE_AFTER_COMMA_REGEX = re.compile(r'[,;:]\s*(?:  |\t)')
11  COMPARE_SINGLETON_REGEX = re.compile(r'(\bNone|\bFalse|\bTrue)?\s*([=!]=)'
12                                       r'\s*(?(1)|(None|False|True))\b')
This page took 0.023123 seconds and 3 git commands to generate.