Skip to content

Commit

Permalink
formatting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycrosley committed Oct 13, 2020
1 parent 54187d0 commit b487874
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions isort/parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,7 @@ def file_contents(contents: str, config: Config = DEFAULT_CONFIG) -> ParsedConte
else:
commentless = line.split("#", 1)[0].strip()
if (
("isort:skip" in line
or "isort: skip" in line)
("isort:skip" in line or "isort: skip" in line)
and "(" in commentless
and ")" not in commentless
):
Expand All @@ -237,7 +236,9 @@ def file_contents(contents: str, config: Config = DEFAULT_CONFIG) -> ParsedConte
and import_index < line_count
):

while import_index < line_count and not commentless.rstrip().endswith(")"):
while import_index < line_count and not commentless.rstrip().endswith(
")"
):
commentless = in_lines[import_index].split("#", 1)[0]
import_index += 1
else:
Expand Down

0 comments on commit b487874

Please sign in to comment.