mirror of
https://github.com/python/cpython.git
synced 2026-01-08 08:22:41 +00:00
gh-138899: fix sys.ps1 in asyncio repl (#138900)
This commit is contained in:
parent
800d856bc7
commit
22f7ccfad6
2 changed files with 4 additions and 0 deletions
|
|
@ -113,6 +113,7 @@ def run(self):
|
|||
run_multiline_interactive_console,
|
||||
)
|
||||
try:
|
||||
sys.ps1 = ps1
|
||||
run_multiline_interactive_console(console)
|
||||
except SystemExit:
|
||||
# expected via the `exit` and `quit` commands
|
||||
|
|
|
|||
|
|
@ -0,0 +1,3 @@
|
|||
Executing ``quit`` command in :mod:`pdb` will raise :exc:`bdb.BdbQuit` when
|
||||
:mod:`pdb` is started from an asyncio console using :func:`breakpoint` or
|
||||
:func:`pdb.set_trace`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue