make source_path in script optional, fixes #32
This commit is contained in:
1 parent
95481be64c
commit
bb76792ea8
6 files changed
+16
-9
No files matched your search
+1
-1
@@ -300,7 +300,7 @@ class Module(Scope):
|
||||
return self._name
|
||||
|
||||
def is_builtin(self):
|
||||
return not self.path.endswith('.py')
|
||||
return not (self.path is None or self.path.endswith('.py'))
|
||||
|
||||
|
||||
class Class(Scope):
|
||||
|
||||
Reference in new issue
Block a user