a function to check if the definition is in a builtin module

This commit is contained in:
David Halter
2012-07-28 22:09:19 +02:00
parent 7aef288eec
commit 24c48aba67
2 changed files with 12 additions and 6 deletions

View File

@@ -98,6 +98,9 @@ class Definition(object):
return str(par.path)
def in_builtin_module(self):
return not self.module_path.endswith('.py')
@property
def line_nr(self):
return self.definition.start_pos[0]