Show More
@@ -135,12 +135,11 b' def _format_traceback_lines(lines, Colors, has_colors, lvals):' | |||||
135 | Format tracebacks lines with pointing arrow, leading numbers... |
|
135 | Format tracebacks lines with pointing arrow, leading numbers... | |
136 |
|
136 | |||
137 | Parameters |
|
137 | Parameters | |
138 | ========== |
|
138 | ---------- | |
139 |
|
139 | lines : list[Line] | ||
140 | lines: list[Line] |
|
140 | Colors | |
141 | Colors: |
|
|||
142 | ColorScheme used. |
|
141 | ColorScheme used. | |
143 | lvals: str |
|
142 | lvals : str | |
144 | Values of local variables, already colored, to inject just after the error line. |
|
143 | Values of local variables, already colored, to inject just after the error line. | |
145 | """ |
|
144 | """ | |
146 | numbers_width = INDENT_SIZE - 1 |
|
145 | numbers_width = INDENT_SIZE - 1 | |
@@ -337,21 +336,17 b' class ListTB(TBTools):' | |||||
337 | Parameters |
|
336 | Parameters | |
338 | ---------- |
|
337 | ---------- | |
339 | etype : exception type |
|
338 | etype : exception type | |
340 | Type of the exception raised. |
|
339 | Type of the exception raised. | |
341 |
|
||||
342 | evalue : object |
|
340 | evalue : object | |
343 | Data stored in the exception |
|
341 | Data stored in the exception | |
344 |
|
||||
345 | etb : object |
|
342 | etb : object | |
346 | If list: List of frames, see class docstring for details. |
|
343 | If list: List of frames, see class docstring for details. | |
347 | If Traceback: Traceback of the exception. |
|
344 | If Traceback: Traceback of the exception. | |
348 |
|
||||
349 | tb_offset : int, optional |
|
345 | tb_offset : int, optional | |
350 | Number of frames in the traceback to skip. If not given, the |
|
346 | Number of frames in the traceback to skip. If not given, the | |
351 | instance evalue is used (set in constructor). |
|
347 | instance evalue is used (set in constructor). | |
352 |
|
||||
353 | context : int, optional |
|
348 | context : int, optional | |
354 | Number of lines of context information to print. |
|
349 | Number of lines of context information to print. | |
355 |
|
350 | |||
356 | Returns |
|
351 | Returns | |
357 | ------- |
|
352 | ------- | |
@@ -518,7 +513,7 b' class ListTB(TBTools):' | |||||
518 | Parameters |
|
513 | Parameters | |
519 | ---------- |
|
514 | ---------- | |
520 | etype : exception type |
|
515 | etype : exception type | |
521 | value : exception value |
|
516 | evalue : exception value | |
522 | """ |
|
517 | """ | |
523 | return ListTB.structured_traceback(self, etype, value) |
|
518 | return ListTB.structured_traceback(self, etype, value) | |
524 |
|
519 | |||
@@ -528,7 +523,7 b' class ListTB(TBTools):' | |||||
528 | Parameters |
|
523 | Parameters | |
529 | ---------- |
|
524 | ---------- | |
530 | etype : exception type |
|
525 | etype : exception type | |
531 | value : exception value |
|
526 | evalue : exception value | |
532 | """ |
|
527 | """ | |
533 | # This method needs to use __call__ from *this* class, not the one from |
|
528 | # This method needs to use __call__ from *this* class, not the one from | |
534 | # a subclass whose signature or behavior may be different |
|
529 | # a subclass whose signature or behavior may be different | |
@@ -975,7 +970,7 b' class AutoFormattedTB(FormattedTB):' | |||||
975 |
|
970 | |||
976 | - tb_offset: the number of frames to skip over in the stack, on a |
|
971 | - tb_offset: the number of frames to skip over in the stack, on a | |
977 | per-call basis (this overrides temporarily the instance's tb_offset |
|
972 | per-call basis (this overrides temporarily the instance's tb_offset | |
978 |
given at initialization time. |
|
973 | given at initialization time.""" | |
979 |
|
974 | |||
980 | if out is None: |
|
975 | if out is None: | |
981 | out = self.ostream |
|
976 | out = self.ostream |
General Comments 0
You need to be logged in to leave comments.
Login now