Changed default namespace of Shell to __main__.__dict__, instead of an
empty dictionary. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25861 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -179,7 +179,8 @@ class Shell(editwindow.EditWindow):
|
||||
editwindow.EditWindow.__init__(self, parent, id, pos, size, style)
|
||||
self.wrap()
|
||||
if locals is None:
|
||||
locals = {}
|
||||
import __main__
|
||||
locals = __main__.__dict__
|
||||
# Grab these so they can be restored by self.redirect* methods.
|
||||
self.stdin = sys.stdin
|
||||
self.stdout = sys.stdout
|
||||
|
Reference in New Issue
Block a user