Skip to content

Commit d17c08b

Browse files
committed
Remove unnecessary non-capture group
1 parent 52ac6c6 commit d17c08b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pycodestyle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def lru_cache(maxsize=128): # noqa as it's a fake implementation.
152152
COMPARE_TYPE_REGEX = re.compile(r'(?:[=!]=|is(?:\s+not)?)\s+type(?:s.\w+Type'
153153
r'|\s*\(\s*([^)]*[^ )])\s*\))')
154154
KEYWORD_REGEX = re.compile(r'(\s*)\b(?:%s)\b(\s*)' % r'|'.join(KEYWORDS))
155-
OPERATOR_REGEX = re.compile(r'(?:[^,\s])(\s*)(?:(?:[-+*/|!<=>%&^]+|:=))(\s*)')
155+
OPERATOR_REGEX = re.compile(r'(?:[^,\s])(\s*)(?:[-+*/|!<=>%&^]+|:=)(\s*)')
156156
LAMBDA_REGEX = re.compile(r'\blambda\b')
157157
HUNK_REGEX = re.compile(r'^@@ -\d+(?:,\d+)? \+(\d+)(?:,(\d+))? @@.*$')
158158
STARTSWITH_DEF_REGEX = re.compile(r'^(async\s+def|def)\b')

0 commit comments

Comments
 (0)