Show More
@@ -1450,6 +1450,8 b' class InteractiveShell(Component, Magic):' | |||||
1450 |
|
1450 | |||
1451 | def set_completer_frame(self, frame=None): |
|
1451 | def set_completer_frame(self, frame=None): | |
1452 | """Set the frame of the completer.""" |
|
1452 | """Set the frame of the completer.""" | |
|
1453 | if not self.has_readline: | |||
|
1454 | return | |||
1453 | if frame: |
|
1455 | if frame: | |
1454 | self.Completer.namespace = frame.f_locals |
|
1456 | self.Completer.namespace = frame.f_locals | |
1455 | self.Completer.global_namespace = frame.f_globals |
|
1457 | self.Completer.global_namespace = frame.f_globals | |
@@ -1842,7 +1844,8 b' class InteractiveShell(Component, Magic):' | |||||
1842 | except EOFError: |
|
1844 | except EOFError: | |
1843 | if self.autoindent: |
|
1845 | if self.autoindent: | |
1844 | self.rl_do_indent = False |
|
1846 | self.rl_do_indent = False | |
1845 |
self.readline |
|
1847 | if self.has_readline: | |
|
1848 | self.readline_startup_hook(None) | |||
1846 | self.write('\n') |
|
1849 | self.write('\n') | |
1847 | self.exit() |
|
1850 | self.exit() | |
1848 | except bdb.BdbQuit: |
|
1851 | except bdb.BdbQuit: |
General Comments 0
You need to be logged in to leave comments.
Login now