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

fixup! Fix: absolute cimport handling

parent 65d02f4d
...@@ -491,7 +491,7 @@ def parse_dependencies(source_filename): ...@@ -491,7 +491,7 @@ def parse_dependencies(source_filename):
if cimport_from: if cimport_from:
cimports.append(cimport_from) cimports.append(cimport_from)
m_after_from = dependency_after_from_regex.search(source[m.end():]) m_after_from = dependency_after_from_regex.search(source[m.end():])
if m: if m_after_from:
multiline, one_line = m_after_from.groups() multiline, one_line = m_after_from.groups()
subimports = multiline or one_line subimports = multiline or one_line
cimports.extend("{}.{}".format(cimport_from, s.strip()) cimports.extend("{}.{}".format(cimport_from, s.strip())
......
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