diff options
author | dcollins <david.collins@gazprom-mt.com> | 2022-05-11 12:54:54 +0100 |
---|---|---|
committer | dcollins <david.collins@gazprom-mt.com> | 2022-05-11 12:54:54 +0100 |
commit | 4833ab09ca9e94ea2cbe3129a3b18c04ba72192e (patch) | |
tree | 98c31f2eb0317293308177217715f847e5799428 /isort | |
parent | 2cb757e31f99e36e45862772228280dd46681a61 (diff) | |
download | isort-4833ab09ca9e94ea2cbe3129a3b18c04ba72192e.tar.gz |
split long cython import lines
Diffstat (limited to 'isort')
-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 |