Show More
@@ -41,7 +41,6 b' from IPython.core.excolors import exception_colors' | |||||
41 | from IPython.testing.skipdoctest import skip_doctest |
|
41 | from IPython.testing.skipdoctest import skip_doctest | |
42 |
|
42 | |||
43 |
|
43 | |||
44 | RGX_EXTRA_INDENT = re.compile('(?<=\n)\s+') |
|
|||
45 |
|
44 | |||
46 |
|
45 | |||
47 | prompt = 'ipdb> ' |
|
46 | prompt = 'ipdb> ' | |
@@ -179,6 +178,9 b' class Tracer(object):' | |||||
179 | self.debugger.set_trace(sys._getframe().f_back) |
|
178 | self.debugger.set_trace(sys._getframe().f_back) | |
180 |
|
179 | |||
181 |
|
180 | |||
|
181 | RGX_EXTRA_INDENT = re.compile('(?<=\n)\s+') | |||
|
182 | ||||
|
183 | ||||
182 | def strip_indentation(multiline_string): |
|
184 | def strip_indentation(multiline_string): | |
183 | return RGX_EXTRA_INDENT.sub('', multiline_string) |
|
185 | return RGX_EXTRA_INDENT.sub('', multiline_string) | |
184 |
|
186 |
General Comments 0
You need to be logged in to leave comments.
Login now