getattr is now also allowed on modules, fixes #116

This commit is contained in:
David Halter committed 2013-05-03 17:00:07 +04:30
1 parent 1d45105461
commit 4865505215
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -408,7 +408,7 @@ class Execution(Executable):
return []
for obj in objects:
if not isinstance(obj, (Instance, Class)):
if not isinstance(obj, (Instance, Class, pr.Module)):
debug.warning('getattr called without instance')
continue