##// END OF EJS Templates
ipdb: fix formatting in core.debugger
Blazej Michalik -
Show More
@@ -50,6 +50,7 b' from pdb import Pdb as OldPdb'
50 # it does so with some limitations. The rest of this support is implemented in
50 # it does so with some limitations. The rest of this support is implemented in
51 # the Tracer constructor.
51 # the Tracer constructor.
52
52
53
53 def make_arrow(pad):
54 def make_arrow(pad):
54 """generate the leading arrow in front of traceback or debugger"""
55 """generate the leading arrow in front of traceback or debugger"""
55 if pad >= 2:
56 if pad >= 2:
@@ -272,7 +273,6 b' class Pdb(OldPdb):'
272 cst['Neutral'].colors.breakpoint_enabled = C.LightRed
273 cst['Neutral'].colors.breakpoint_enabled = C.LightRed
273 cst['Neutral'].colors.breakpoint_disabled = C.Red
274 cst['Neutral'].colors.breakpoint_disabled = C.Red
274
275
275
276 # Add a python parser so we can syntax highlight source while
276 # Add a python parser so we can syntax highlight source while
277 # debugging.
277 # debugging.
278 self.parser = PyColorize.Parser(style=color_scheme)
278 self.parser = PyColorize.Parser(style=color_scheme)
@@ -488,7 +488,6 b' class Pdb(OldPdb):'
488
488
489 return tpl_line % (bp_mark_color + bp_mark, num, line)
489 return tpl_line % (bp_mark_color + bp_mark, num, line)
490
490
491
492 def print_list_lines(self, filename, first, last):
491 def print_list_lines(self, filename, first, last):
493 """The printing (as opposed to the parsing part of a 'list'
492 """The printing (as opposed to the parsing part of a 'list'
494 command."""
493 command."""
@@ -706,7 +705,7 b' class Pdb(OldPdb):'
706
705
707 Will skip hidden frames.
706 Will skip hidden frames.
708 """
707 """
709 ## modified version of upstream that skips
708 # modified version of upstream that skips
710 # frames with __tracebackide__
709 # frames with __tracebackide__
711 if self.curindex == 0:
710 if self.curindex == 0:
712 self.error("Oldest frame")
711 self.error("Oldest frame")
General Comments 0
You need to be logged in to leave comments. Login now