1
0
forked from VimPlug/jedi

none positions shouldn't be an option, (0, 0) is the 'invalid' or 'generated' position for objects that are always found

This commit is contained in:
David Halter
2012-11-24 17:42:52 +01:00
parent e921ec11e3
commit 1e259c1c6e
2 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -80,8 +80,8 @@ class ImportPath(parsing.Base):
"""
i = self.import_stmt
# This is not an existing Import statement. Therefore, set position to
# None.
zero = (None, None)
# 0 (0 is not a valid line number).
zero = (0, 0)
n = parsing.Name(i.namespace.names[1:], zero, zero, self.import_stmt)
new = parsing.Import(zero, zero, n)
new.parent = weakref.ref(parent)