Modules have now the name __main__ if they contain dots.

This commit is contained in:
Dave Halter committed 2015-04-28 17:29:42 +02:00
1 parent bb02f99de3
commit 126f490f1e
4 files changed
+22 -6

No files matched your search

+2
View File
@@ -763,6 +763,8 @@ class ModuleWrapper(use_metaclass(CachedMetaClass, tree.Module, Wrapper)):
if module == self:
return name
return '__main__'
def py__file__(self):
"""
In contrast to Python's __file__ can be None.