diff options
-rw-r--r-- | isort/api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/isort/api.py b/isort/api.py index c39b1b58..8ff8ec87 100644 --- a/isort/api.py +++ b/isort/api.py @@ -216,7 +216,9 @@ def sort_imports( import_section += line elif stripped_line.startswith(IMPORT_START_IDENTIFIERS): import_section += line - while stripped_line.endswith("\\") or ("(" in stripped_line and ")" not in stripped_line): + while stripped_line.endswith("\\") or ( + "(" in stripped_line and ")" not in stripped_line + ): if stripped_line.endswith("\\"): while stripped_line and stripped_line.endswith("\\"): line = input_stream.readline() |