diff options
author | Kryštof Pilnáček <krystof.pilnacek@rossum.ai> | 2018-11-01 09:00:25 +0100 |
---|---|---|
committer | Kryštof Pilnáček <krystof.pilnacek@rossum.ai> | 2018-11-01 09:01:26 +0100 |
commit | df68d9e437e3abf70566daf947cbb4227913334d (patch) | |
tree | dcbc3aa17104ee52047f9ca7248c6d10d04dc363 | |
parent | 2832ccf7911dcadfb174551fc3cdbd1209fcdaf7 (diff) | |
download | cython-df68d9e437e3abf70566daf947cbb4227913334d.tar.gz |
fixup! Fix: absolute cimport handling
-rw-r--r-- | Cython/Build/Dependencies.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Build/Dependencies.py b/Cython/Build/Dependencies.py index 42353fbb8..b024805aa 100644 --- a/Cython/Build/Dependencies.py +++ b/Cython/Build/Dependencies.py @@ -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 |