summaryrefslogtreecommitdiff
path: root/Lib/importlib/_bootstrap.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2014-01-02 22:25:00 -0700
committerEric Snow <ericsnowcurrently@gmail.com>2014-01-02 22:25:00 -0700
commitfbc785188db081c3d3940bf4dcd316de28fda066 (patch)
tree8ed41c9c1c664bafe4a88d6c13016861acb6e86b /Lib/importlib/_bootstrap.py
parent9dee304205d34a8565f922fdad5b0f89fcff65a5 (diff)
downloadcpython-git-fbc785188db081c3d3940bf4dcd316de28fda066.tar.gz
Issue #20097: Fix bad use of "self" in importlib's WindowsRegistryFinder.
Diffstat (limited to 'Lib/importlib/_bootstrap.py')
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index efe62d4c4e..62e25a32d9 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -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: