summaryrefslogtreecommitdiff
path: root/Cython
diff options
context:
space:
mode:
authorKryštof Pilnáček <krystof.pilnacek@rossum.ai>2018-11-01 09:00:25 +0100
committerKryštof Pilnáček <krystof.pilnacek@rossum.ai>2018-11-01 09:01:26 +0100
commitdf68d9e437e3abf70566daf947cbb4227913334d (patch)
treedcbc3aa17104ee52047f9ca7248c6d10d04dc363 /Cython
parent2832ccf7911dcadfb174551fc3cdbd1209fcdaf7 (diff)
downloadcython-df68d9e437e3abf70566daf947cbb4227913334d.tar.gz
fixup! Fix: absolute cimport handling
Diffstat (limited to 'Cython')
-rw-r--r--Cython/Build/Dependencies.py2
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