Skip to content

Commit

Permalink
disable shell integration for 3.13 (#24341)
Browse files Browse the repository at this point in the history
Resolves: #24339

---------

Co-authored-by: Karthik Nadig <kanadig@microsoft.com>
  • Loading branch information
anthonykim1 and karthiknadig authored Oct 28, 2024
1 parent b428ba5 commit d440bc1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python_files/pythonrc.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import readline

original_ps1 = ">>> "
use_shell_integration = sys.version_info < (3, 13)


class REPLHooks:
Expand Down Expand Up @@ -72,5 +73,5 @@ def __str__(self):
return result


if sys.platform != "win32":
if sys.platform != "win32" and use_shell_integration:
sys.ps1 = PS1()

0 comments on commit d440bc1

Please sign in to comment.