Skip to content

Commit 22f7ccf

Browse files
authored
gh-138899: fix sys.ps1 in asyncio repl (#138900)
1 parent 800d856 commit 22f7ccf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Lib/asyncio/__main__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def run(self):
113113
run_multiline_interactive_console,
114114
)
115115
try:
116+
sys.ps1 = ps1
116117
run_multiline_interactive_console(console)
117118
except SystemExit:
118119
# expected via the `exit` and `quit` commands
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Executing ``quit`` command in :mod:`pdb` will raise :exc:`bdb.BdbQuit` when
2+
:mod:`pdb` is started from an asyncio console using :func:`breakpoint` or
3+
:func:`pdb.set_trace`.

0 commit comments

Comments
 (0)