Returns (file, line) for file:line and (current_file, line) for line
(text, current_file)
| 1465 | self.shell.user_ns[args.output] = io |
| 1466 | |
| 1467 | def parse_breakpoint(text, current_file): |
| 1468 | '''Returns (file, line) for file:line and (current_file, line) for line''' |
| 1469 | colon = text.find(':') |
| 1470 | if colon == -1: |
| 1471 | return current_file, int(text) |
| 1472 | else: |
| 1473 | return text[:colon], int(text[colon+1:]) |
| 1474 | |
| 1475 | def _format_time(timespan, precision=3): |
| 1476 | """Formats the timespan in a human readable form""" |