Show More
@@ -252,7 +252,11 b' class DisplayHook(Configurable):' | |||||
252 | try: |
|
252 | try: | |
253 | del self.shell.user_ns[key] |
|
253 | del self.shell.user_ns[key] | |
254 | except: pass |
|
254 | except: pass | |
255 | self.shell.user_ns['_oh'].clear() |
|
255 | # In some embedded circumstances, the user_ns doesn't have the | |
|
256 | # '_oh' key set up. | |||
|
257 | oh = self.shell.user_ns.get('_oh', None) | |||
|
258 | if oh is not None: | |||
|
259 | oh.clear() | |||
256 |
|
260 | |||
257 | # Release our own references to objects: |
|
261 | # Release our own references to objects: | |
258 | self._, self.__, self.___ = '', '', '' |
|
262 | self._, self.__, self.___ = '', '', '' |
General Comments 0
You need to be logged in to leave comments.
Login now