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