Skip to content

Commit b1484ba

Browse files
committed
take suggestion
1 parent b38b6fc commit b1484ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python_files/pythonrc.py

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

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

99

1010
class REPLHooks:
@@ -73,5 +73,5 @@ def __str__(self):
7373
return result
7474

7575

76-
if sys.platform != "win32" and not should_opt_out:
76+
if sys.platform != "win32" and use_shell_integration:
7777
sys.ps1 = PS1()

0 commit comments

Comments
 (0)