Skip to content

Commit

Permalink
take suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonykim1 committed Oct 28, 2024
1 parent b38b6fc commit b1484ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python_files/pythonrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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()

0 comments on commit b1484ba

Please sign in to comment.