MCPcopy Create free account
hub / github.com/bpython/bpython / _bpython_clear_linecache

Function _bpython_clear_linecache

bpython/patch_linecache.py:58–63  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57
58def _bpython_clear_linecache() -> None:
59 if isinstance(linecache.cache, BPythonLinecache):
60 bpython_history = linecache.cache.bpython_history
61 else:
62 bpython_history = None
63 linecache.cache = BPythonLinecache(bpython_history)
64
65
66# Monkey-patch the linecache module so that we are able

Callers

nothing calls this directly

Calls 1

BPythonLinecacheClass · 0.85

Tested by

no test coverage detected