Commit df68d9e4 authored by Kryštof Pilnáček's avatar Kryštof Pilnáček

fixup! Fix: absolute cimport handling

parent 2832ccf7
......@@ -490,7 +490,7 @@ def parse_dependencies(source_filename):
cimport_from, cimport_list, extern, include = m.groups()
if 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, pos=m.end())
if m_after_from:
multiline, one_line = m_after_from.groups()
subimports = multiline or one_line
......
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