summaryrefslogtreecommitdiffstats
path: root/Lib/pkgutil.py
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 20:55:40 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 20:55:40 (GMT)
commitfd43b4d3e4ef17f018e6da2d218c6ae193d6b45c (patch)
treeecbf931ca38b74dc276afa54507f534fec36acd7 /Lib/pkgutil.py
parentaa03a1fe2a05b561e461817794e8d1de6f2205cf (diff)
parent1f415cf2c2b5f3eec5489ec1276c0629b32b28c0 (diff)
downloadcpython-fd43b4d3e4ef17f018e6da2d218c6ae193d6b45c.zip
cpython-fd43b4d3e4ef17f018e6da2d218c6ae193d6b45c.tar.gz
cpython-fd43b4d3e4ef17f018e6da2d218c6ae193d6b45c.tar.bz2
replace threw with raised (#16714)
Diffstat (limited to 'Lib/pkgutil.py')
-rw-r--r--Lib/pkgutil.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index 7ff247f..01eeefb 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -503,7 +503,7 @@ def find_loader(fullname):
except (ImportError, AttributeError, TypeError, ValueError) as ex:
# This hack fixes an impedance mismatch between pkgutil and
# importlib, where the latter raises other errors for cases where
- # pkgutil previously threw ImportError
+ # pkgutil previously raised ImportError
msg = "Error while finding loader for {!r} ({}: {})"
raise ImportError(msg.format(fullname, type(ex), ex)) from ex