Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
myint committed Mar 13, 2015
1 parent 6da2c54 commit 87e4ddb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions eradicate.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@ def multiline_case(line):
if line.endswith('\\'):
return True

if (
re.match(r'^\s*\w+\s*=', line) and
line.strip().endswith(('(', '[', '{'))
):
if re.match(r'^\s*\w+\s*=.*[(\[{]$', line):
return True

if re.match(r'^[()\[\]{}\s]+$', line):
Expand Down

0 comments on commit 87e4ddb

Please sign in to comment.