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

Function getlines

IPython/utils/ulinecache.py:14–21  ·  view source on GitHub ↗

Deprecated since IPython 6.0

(filename, module_globals=None)

Source from the content-addressed store, hash-verified

12# getlines has to be looked up at runtime, because doctests monkeypatch it.
13@functools.wraps(linecache.getlines)
14def getlines(filename, module_globals=None):
15 """
16 Deprecated since IPython 6.0
17 """
18 warn(("`IPython.utils.ulinecache.getlines` is deprecated since"
19 " IPython 6.0 and will be removed in future versions."),
20 DeprecationWarning, stacklevel=2)
21 return linecache.getlines(filename, module_globals=module_globals)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected