Show More
@@ -297,8 +297,11 b' class DisplayHook(Configurable):' | |||||
297 | for n in range(1,self.prompt_count + 1): |
|
297 | for n in range(1,self.prompt_count + 1): | |
298 | key = '_'+repr(n) |
|
298 | key = '_'+repr(n) | |
299 | try: |
|
299 | try: | |
|
300 | del self.shell.user_ns_hidden[key] | |||
|
301 | except KeyError: pass | |||
|
302 | try: | |||
300 | del self.shell.user_ns[key] |
|
303 | del self.shell.user_ns[key] | |
301 | except: pass |
|
304 | except KeyError: pass | |
302 | # In some embedded circumstances, the user_ns doesn't have the |
|
305 | # In some embedded circumstances, the user_ns doesn't have the | |
303 | # '_oh' key set up. |
|
306 | # '_oh' key set up. | |
304 | oh = self.shell.user_ns.get('_oh', None) |
|
307 | oh = self.shell.user_ns.get('_oh', None) |
General Comments 0
You need to be logged in to leave comments.
Login now