Skip to content

Commit ad8d574

Browse files
committed
fix REPL traceback report
1 parent 75f38af commit ad8d574

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/_pyrepl/__main__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Important: don't add things to this module, as they will end up in the REPL's
22
# default globals. Use _pyrepl.main instead.
33

4+
# Avoid caching this file by linecache and incorrectly report tracebacks.
5+
# See https://github.com/python/cpython/issues/129098.
6+
__spec__ = __loader__ = None
7+
48
if __name__ == "__main__":
59
from .main import interactive_console as __pyrepl_interactive_console
610
__pyrepl_interactive_console()

0 commit comments

Comments
 (0)