From ba9ba7c1fe505081304afb8d2ea497279bace534 Mon Sep 17 00:00:00 2001 From: David Halter Date: Sun, 11 Aug 2013 21:15:35 +0430 Subject: [PATCH] line and column return None in case of builtin module, fixes #221 --- jedi/api_classes.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jedi/api_classes.py b/jedi/api_classes.py index 57613444..ec187215 100644 --- a/jedi/api_classes.py +++ b/jedi/api_classes.py @@ -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