Skip to content

Commit

Permalink
strict autopep8
Browse files Browse the repository at this point in the history
  • Loading branch information
hhatto committed Oct 23, 2018
1 parent 4dd7ca1 commit 0fd9c35
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autopep8.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,7 +1228,10 @@ def fix_w503(self, result):
break
to_index = line_index + 1
strip_line = self.source[from_index].lstrip()
if not found_not_comment_only_line and strip_line and strip_line[0] == '#':
if (
not found_not_comment_only_line and
strip_line and strip_line[0] == '#'
):
comment_only_linenum += 1
continue
found_not_comment_only_line = True
Expand Down

0 comments on commit 0fd9c35

Please sign in to comment.