Skip to content

Commit 5ad79b2

Browse files
committed
Address comments
1 parent 89fccc3 commit 5ad79b2

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Lib/pdb.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,6 @@
8484
import signal
8585
import socket
8686
import typing
87-
lazy import asyncio
8887
import inspect
8988
import weakref
9089
import builtins
@@ -102,6 +101,8 @@
102101
from types import CodeType
103102
from warnings import deprecated
104103

104+
lazy import asyncio
105+
105106
try:
106107
import _pyrepl.utils
107108
except ModuleNotFoundError:
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
Speed up :mod:`pdb` startup by deferring the :mod:`asyncio` import, and by
2-
skipping it entirely in ``Pdb._get_asyncio_task()`` when no event loop has
3-
been used.
1+
Speed up :mod:`pdb` startup by only importing :mod:`asyncio` when the program
2+
being debugged has already imported it.

0 commit comments

Comments
 (0)