diff options
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 |