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

fixup! Fix: absolute cimport handling

parent 794fcb18
...@@ -490,7 +490,7 @@ def parse_dependencies(source_filename): ...@@ -490,7 +490,7 @@ def parse_dependencies(source_filename):
cimport_from, cimport_list, extern, include = m.groups() cimport_from, cimport_list, extern, include = m.groups()
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, pos=m.end())
if m_after_from: 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
......
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