summaryrefslogtreecommitdiffstats
path: root/Lib/imp.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2016-07-15 17:59:11 (GMT)
committerBrett Cannon <brett@python.org>2016-07-15 17:59:11 (GMT)
commit896e87a99c8b889315a0d72e864360ec575c6b5e (patch)
tree3a1ab751086c05c1b866666953c65b086698cb80 /Lib/imp.py
parent044283a426f1ffc09e4994b121ba588a46bf1318 (diff)
parentf76457e12203d301c94e33957ff7121a24856b83 (diff)
downloadcpython-896e87a99c8b889315a0d72e864360ec575c6b5e.zip
cpython-896e87a99c8b889315a0d72e864360ec575c6b5e.tar.gz
cpython-896e87a99c8b889315a0d72e864360ec575c6b5e.tar.bz2
Merge for #26844
Diffstat (limited to 'Lib/imp.py')
-rw-r--r--Lib/imp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/imp.py b/Lib/imp.py
index b339952..781ff23 100644
--- a/Lib/imp.py
+++ b/Lib/imp.py
@@ -266,8 +266,8 @@ def find_module(name, path=None):
raise TypeError("'name' must be a str, not {}".format(type(name)))
elif not isinstance(path, (type(None), list)):
# Backwards-compatibility
- raise RuntimeError("'list' must be None or a list, "
- "not {}".format(type(name)))
+ raise RuntimeError("'path' must be None or a list, "
+ "not {}".format(type(path)))
if path is None:
if is_builtin(name):