From 94b87a7347dde87ecc010698bda339794e4c4feb 2006-06-02 13:48:58 From: walter.doerwald Date: 2006-06-02 13:48:58 Subject: [PATCH] Use IPython user namespace for the global namespace in the find and findbackwards commands. --- diff --git a/IPython/Extensions/ibrowse.py b/IPython/Extensions/ibrowse.py index 2a0fe4f..07d956f 100644 --- a/IPython/Extensions/ibrowse.py +++ b/IPython/Extensions/ibrowse.py @@ -1046,7 +1046,8 @@ class ibrowse(ipipe.Display): break item = level.items[level.cury].item try: - if eval(self.keyboardinput, globals(), ipipe.AttrNamespace(item)): + globals = ipipe.getglobals(None) + if eval(self.keyboardinput, globals, ipipe.AttrNamespace(item)): break except (KeyboardInterrupt, SystemExit): raise @@ -1065,7 +1066,8 @@ class ibrowse(ipipe.Display): level.moveto(level.curx, level.cury-1) item = level.items[level.cury].item try: - if eval(self.keyboardinput, globals(), ipipe.AttrNamespace(item)): + globals = ipipe.getglobals(None) + if eval(self.keyboardinput, globals, ipipe.AttrNamespace(item)): break except (KeyboardInterrupt, SystemExit): raise