Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder.

This commit is contained in:
Eric Snow 2014-01-02 22:25:00 -07:00
parent 9dee304205
commit fbc785188d
4 changed files with 1893 additions and 1862 deletions

View file

@ -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: