Skip to content

Commit

Permalink
Issue PyCQA#1276: Stop parsing when meeting triple quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
hyeonjames committed Jul 6, 2020
1 parent 4c72396 commit 37dc2b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions isort/output.py
Expand Up @@ -204,6 +204,9 @@ def sorted_imports(
):
next_construct = line
break
elif in_quote in ('"""', "'''"):
next_construct = line
break

if config.lines_after_imports != -1:
formatted_output[imports_tail:0] = ["" for line in range(config.lines_after_imports)]
Expand Down

0 comments on commit 37dc2b6

Please sign in to comment.