File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -266,8 +266,8 @@ def find_module(name, path=None):
266
266
raise TypeError ("'name' must be a str, not {}" .format (type (name )))
267
267
elif not isinstance (path , (type (None ), list )):
268
268
# Backwards-compatibility
269
- raise RuntimeError ("'list ' must be None or a list, "
270
- "not {}" .format (type (name )))
269
+ raise RuntimeError ("'path ' must be None or a list, "
270
+ "not {}" .format (type (path )))
271
271
272
272
if path is None :
273
273
if is_builtin (name ):
Original file line number Diff line number Diff line change @@ -939,6 +939,7 @@ Graham Matthews
939
939
mattip
940
940
Martin Matusiak
941
941
Dieter Maurer
942
+ Lev Maximov
942
943
Daniel May
943
944
Madison May
944
945
Lucas Maystre
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ Core and Builtins
22
22
Library
23
23
-------
24
24
25
+ - Issue #26844: Fix error message for imp.find_module() to refer to 'path'
26
+ instead of 'name'. Patch by Lev Maximov.
27
+
25
28
- Issue #23804: Fix SSL zero-length recv() calls to not block and not raise
26
29
an error about unclean EOF.
27
30
You can’t perform that action at this time.
0 commit comments