1
0
forked from VimPlug/jedi

line and column return None in case of builtin module, fixes #221

This commit is contained in:
David Halter
2013-08-11 21:15:35 +04:30
parent cf4325cef1
commit ba9ba7c1fe

View File

@@ -192,11 +192,15 @@ class BaseDefinition(object):
@property
def line(self):
"""The line where the definition occurs (starting with 1)."""
if self.in_builtin_module:
return None
return self.start_pos[0]
@property
def column(self):
"""The column where the definition occurs (starting with 0)."""
if self.in_builtin_module:
return None
return self.start_pos[1]
@property