MCPcopy Create free account
hub / github.com/ipython/ipython / parse_breakpoint

Function parse_breakpoint

IPython/core/magics/execution.py:1467–1473  ·  view source on GitHub ↗

Returns (file, line) for file:line and (current_file, line) for line

(text, current_file)

Source from the content-addressed store, hash-verified

1465 self.shell.user_ns[args.output] = io
1466
1467def 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
1475def _format_time(timespan, precision=3):
1476 """Formats the timespan in a human readable form"""

Callers 1

runMethod · 0.85

Calls 1

findMethod · 0.45

Tested by

no test coverage detected