()
| 56 | |
| 57 | |
| 58 | def _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 |
nothing calls this directly
no test coverage detected