mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder.
This commit is contained in:
parent
9dee304205
commit
fbc785188d
4 changed files with 1893 additions and 1862 deletions
|
@ -1406,7 +1406,7 @@ class WindowsRegistryFinder:
|
|||
@classmethod
|
||||
def find_module(cls, fullname, path=None):
|
||||
"""Find module named in the registry."""
|
||||
spec = self.find_spec(fullname, path)
|
||||
spec = cls.find_spec(fullname, path)
|
||||
if spec is not None:
|
||||
return spec.loader
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue