Skip to content

Commit

Permalink
fix invalid regex
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Apr 12, 2021
1 parent 9274aac commit a0e00a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autopep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class documentation for more information.


PYTHON_SHEBANG_REGEX = re.compile(r'^#!.*\bpython[23]?\b\s*$')
LAMBDA_REGEX = re.compile(r'([\w.]+)\s=\slambda\s*([\(\)=\w,\s.]*):')
LAMBDA_REGEX = re.compile(r'([\w.]+)\s=\slambda\s*([)(=\w,\s.]*):')
COMPARE_NEGATIVE_REGEX = re.compile(r'\b(not)\s+([^][)(}{]+?)\s+(in|is)\s')
COMPARE_NEGATIVE_REGEX_THROUGH = re.compile(r'\b(not\s+in|is\s+not)\s')
BARE_EXCEPT_REGEX = re.compile(r'except\s*:')
Expand Down

0 comments on commit a0e00a8

Please sign in to comment.