Skip to content

Commit 529e6ea

Browse files
committed
Remove generalization of a 'canonical' module and just repeat one's self
1 parent 8525926 commit 529e6ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Lib/importlib/abc.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
]
2626

2727

28-
def __getattr__(name, canonical=_resources_abc):
28+
def __getattr__(name):
2929
"""
3030
For backwards compatibility, continue to make names
31-
from canonical available through this module. #93963
31+
from _resources_abc available through this module. #93963
3232
"""
33-
if name in canonical.__all__:
34-
obj = getattr(canonical, name)
33+
if name in _resources_abc.__all__:
34+
obj = getattr(_resources_abc, name)
3535
warnings._deprecated(__name__, remove=(3, 14))
3636
globals()[name] = obj
3737
return obj

0 commit comments

Comments
 (0)