diff -r 0dd6ac8ea523 Lib/imp.py --- a/Lib/imp.py Mon Apr 25 00:12:32 2016 +0300 +++ b/Lib/imp.py Mon Apr 25 12:06:24 2016 +0600 @@ -266,8 +266,8 @@ 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):