Commit 794fcb18 authored by Kryštof Pilnáček's avatar Kryštof Pilnáček Committed by Stefan Behnel

fixup! Fix: absolute cimport handling

parent f76bb20a
......@@ -399,8 +399,8 @@ dependency_regex = re.compile(r"(?:^\s*from +([0-9a-zA-Z_.]+) +cimport)|"
r"(?:^\s*cimport +([0-9a-zA-Z_.]+(?: *, *[0-9a-zA-Z_.]+)*))|"
r"(?:^\s*cdef +extern +from +['\"]([^'\"]+)['\"])|"
r"(?:^\s*include +['\"]([^'\"]+)['\"])", re.M)
dependency_after_from_regex = re.compile(r"(?:^\s+\(((?:[0-9a-zA-Z_., ]*\n)*)\)\n)|"
r"(?:^\s+((?:[0-9a-zA-Z_., ]*))\n)")
dependency_after_from_regex = re.compile(r"(?:^\s+\(((?:[0-9a-zA-Z_., ]*)*)\)[#\n])|"
r"(?:^\s+((?:[0-9a-zA-Z_., ]*))[#\n])", re.M)
def normalize_existing(base_path, rel_paths):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment