From b1484ba606c96459b717f2dcd290edf38edf12fb Mon Sep 17 00:00:00 2001 From: Anthony Kim Date: Mon, 28 Oct 2024 13:18:08 -0700 Subject: [PATCH] take suggestion --- python_files/pythonrc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python_files/pythonrc.py b/python_files/pythonrc.py index b4b04a580d3b..5791bb3967c0 100644 --- a/python_files/pythonrc.py +++ b/python_files/pythonrc.py @@ -4,7 +4,7 @@ import readline original_ps1 = ">>> " -should_opt_out = sys.version_info >= (3, 13) +use_shell_integration = sys.version_info < (3, 13) class REPLHooks: @@ -73,5 +73,5 @@ def __str__(self): return result -if sys.platform != "win32" and not should_opt_out: +if sys.platform != "win32" and use_shell_integration: sys.ps1 = PS1()