Issue #15502: Refactor some code.
diff --git a/Lib/importlib/abc.py b/Lib/importlib/abc.py
index cd687e8..387567a 100644
--- a/Lib/importlib/abc.py
+++ b/Lib/importlib/abc.py
@@ -78,10 +78,7 @@
"""
raise NotImplementedError
- def find_module(self, fullname):
- """Compatibility function which is the equivalent of
- self.find_loader(fullname)[0]."""
- return self.find_loader(fullname)[0]
+ find_module = _bootstrap._find_module_shim
def invalidate_caches(self):
"""An optional method for clearing the finder's cache, if any.