Skip to content

Commit a71ce97

Browse files
committed
Reorder imports in importlib.abc for clarity and consistency
1 parent 457b553 commit a71ce97

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lib/importlib/abc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""Abstract base classes related to import."""
22
from . import _bootstrap_external
33
from . import machinery
4+
45
try:
56
import _frozen_importlib
67
except ImportError as exc:
@@ -11,10 +12,12 @@
1112
import _frozen_importlib_external
1213
except ImportError:
1314
_frozen_importlib_external = _bootstrap_external
14-
from ._abc import Loader
1515
import abc
1616

1717

18+
# Public API
19+
from ._abc import Loader
20+
1821
__all__ = [
1922
'Loader', 'MetaPathFinder', 'PathEntryFinder',
2023
'ResourceLoader', 'InspectLoader', 'ExecutionLoader',

0 commit comments

Comments
 (0)