diff --git a/python_files/pythonrc.py b/python_files/pythonrc.py index 2595143feade..5791bb3967c0 100644 --- a/python_files/pythonrc.py +++ b/python_files/pythonrc.py @@ -4,6 +4,7 @@ import readline original_ps1 = ">>> " +use_shell_integration = sys.version_info < (3, 13) class REPLHooks: @@ -72,5 +73,5 @@ def __str__(self): return result -if sys.platform != "win32": +if sys.platform != "win32" and use_shell_integration: sys.ps1 = PS1()