Skip to content

Commit 082f1a8

Browse files
committed
disable shell integration for 3.13
1 parent 40b29bf commit 082f1a8

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

python_files/pythonrc.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import readline
55

66
original_ps1 = ">>> "
7-
7+
should_opt_out = sys.version_info.major == 3 and sys.version_info.minor == 13
88

99
class REPLHooks:
1010
def __init__(self):
@@ -71,6 +71,5 @@ def __str__(self):
7171

7272
return result
7373

74-
75-
if sys.platform != "win32":
74+
if sys.platform != "win32" and not should_opt_out:
7675
sys.ps1 = PS1()

0 commit comments

Comments
 (0)