Show More
@@ -297,8 +297,13 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: | |||
|
302 | pass | |||
|
303 | try: | |||
300 | del self.shell.user_ns[key] |
|
304 | del self.shell.user_ns[key] | |
301 |
except: |
|
305 | except KeyError: | |
|
306 | pass | |||
302 | # In some embedded circumstances, the user_ns doesn't have the |
|
307 | # In some embedded circumstances, the user_ns doesn't have the | |
303 | # '_oh' key set up. |
|
308 | # '_oh' key set up. | |
304 | oh = self.shell.user_ns.get('_oh', None) |
|
309 | oh = self.shell.user_ns.get('_oh', None) |
General Comments 0
You need to be logged in to leave comments.
Login now