Show More
@@ -122,12 +122,6 b' class Tracer(object):' | |||||
122 | sys.excepthook = functools.partial(BdbQuit_excepthook, |
|
122 | sys.excepthook = functools.partial(BdbQuit_excepthook, | |
123 | excepthook=sys.excepthook) |
|
123 | excepthook=sys.excepthook) | |
124 | def_colors = 'NoColor' |
|
124 | def_colors = 'NoColor' | |
125 | try: |
|
|||
126 | # Limited tab completion support |
|
|||
127 | import readline |
|
|||
128 | readline.parse_and_bind('tab: complete') |
|
|||
129 | except ImportError: |
|
|||
130 | pass |
|
|||
131 | else: |
|
125 | else: | |
132 | # In ipython, we use its custom exception handler mechanism |
|
126 | # In ipython, we use its custom exception handler mechanism | |
133 | def_colors = ip.colors |
|
127 | def_colors = ip.colors | |
@@ -300,18 +294,10 b' class Pdb(OldPdb, object):' | |||||
300 | self.color_scheme_table.set_active_scheme(scheme) |
|
294 | self.color_scheme_table.set_active_scheme(scheme) | |
301 |
|
295 | |||
302 | def interaction(self, frame, traceback): |
|
296 | def interaction(self, frame, traceback): | |
303 | self.shell.set_completer_frame(frame) |
|
297 | try: | |
304 | while True: |
|
298 | OldPdb.interaction(self, frame, traceback) | |
305 | try: |
|
299 | except KeyboardInterrupt: | |
306 | OldPdb.interaction(self, frame, traceback) |
|
300 | sys.stdout.write('\n' + self.shell.get_exception_only()) | |
307 | break |
|
|||
308 | except KeyboardInterrupt: |
|
|||
309 | self.shell.write('\n' + self.shell.get_exception_only()) |
|
|||
310 | break |
|
|||
311 | finally: |
|
|||
312 | # Pdb sets readline delimiters, so set them back to our own |
|
|||
313 | if self.shell.readline is not None: |
|
|||
314 | self.shell.readline.set_completer_delims(self.shell.readline_delims) |
|
|||
315 |
|
301 | |||
316 | def parseline(self, line): |
|
302 | def parseline(self, line): | |
317 | if line.startswith("!!"): |
|
303 | if line.startswith("!!"): |
General Comments 0
You need to be logged in to leave comments.
Login now