Skip to content

Commit cab4d9f

Browse files
Fix mismatched traceback in pythonrc.py injection
1 parent df1e567 commit cab4d9f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

python_files/pythonrc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
if sys.platform != "win32":
55
import readline
66

7+
# Avoid caching this file by linecache and incorrectly report tracebacks.
8+
__spec__ = __loader__ = None
9+
10+
711
original_ps1 = ">>> "
812
is_wsl = "microsoft-standard-WSL" in platform.release()
913

0 commit comments

Comments
 (0)