diff options
author | Timothy Edmund Crosley <timothy.crosley@gmail.com> | 2022-05-11 13:21:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-11 13:21:13 -0700 |
commit | b9716d7fe0bfa37fd90894b0041d09c6066d74da (patch) | |
tree | 98c31f2eb0317293308177217715f847e5799428 | |
parent | 2cb757e31f99e36e45862772228280dd46681a61 (diff) | |
parent | 4833ab09ca9e94ea2cbe3129a3b18c04ba72192e (diff) | |
download | isort-b9716d7fe0bfa37fd90894b0041d09c6066d74da.tar.gz |
Merge pull request #1931 from davidcollins001/main
Split long cython import lines
-rw-r--r-- | isort/wrap.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/isort/wrap.py b/isort/wrap.py index 5fb4631f..c89cfa53 100644 --- a/isort/wrap.py +++ b/isort/wrap.py @@ -69,7 +69,7 @@ def line(content: str, line_separator: str, config: Config = DEFAULT_CONFIG) -> comment = None if "#" in content: line_without_comment, comment = content.split("#", 1) - for splitter in ("import ", ".", "as "): + for splitter in ("import ", "cimport ", ".", "as "): exp = r"\b" + re.escape(splitter) + r"\b" if re.search(exp, line_without_comment) and not line_without_comment.strip().startswith( splitter |