Skip to content

Commit d440bc1

Browse files
disable shell integration for 3.13 (#24341)
Resolves: #24339 --------- Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
1 parent b428ba5 commit d440bc1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python_files/pythonrc.py

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

66
original_ps1 = ">>> "
7+
use_shell_integration = sys.version_info < (3, 13)
78

89

910
class REPLHooks:
@@ -72,5 +73,5 @@ def __str__(self):
7273
return result
7374

7475

75-
if sys.platform != "win32":
76+
if sys.platform != "win32" and use_shell_integration:
7677
sys.ps1 = PS1()

0 commit comments

Comments
 (0)