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

Function _format_lineno

IPython/core/history.py:902–906  ·  view source on GitHub ↗

Helper function to format line numbers properly.

(session, line)

Source from the content-addressed store, hash-verified

900
901
902def _format_lineno(session, line):
903 """Helper function to format line numbers properly."""
904 if session == 0:
905 return str(line)
906 return "%s#%s" % (session, line)

Callers 1

historyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected