summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 20:54:47 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-19 20:54:47 (GMT)
commit1f415cf2c2b5f3eec5489ec1276c0629b32b28c0 (patch)
tree08c28b5c398c0e2071c7c5e883e5d08c5fc2b5df /Lib
parent08d02724df9c99fb66be506755986e199b8781d3 (diff)
parent7bd61cbc030663ac688364260d2142d09678b2a3 (diff)
downloadcpython-1f415cf2c2b5f3eec5489ec1276c0629b32b28c0.zip
cpython-1f415cf2c2b5f3eec5489ec1276c0629b32b28c0.tar.gz
cpython-1f415cf2c2b5f3eec5489ec1276c0629b32b28c0.tar.bz2
replace threw with raised (#16714)
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pkgutil.py2
-rw-r--r--Lib/test/test_urllib2.py2
-rw-r--r--Lib/test/test_winreg.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pkgutil.py b/Lib/pkgutil.py
index 2c8a31b..a5de04d 100644
--- a/Lib/pkgutil.py
+++ b/Lib/pkgutil.py
@@ -505,7 +505,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
diff --git a/Lib/test/test_urllib2.py b/Lib/test/test_urllib2.py
index 7ae1553..2d94ba4 100644
--- a/Lib/test/test_urllib2.py
+++ b/Lib/test/test_urllib2.py
@@ -1288,7 +1288,7 @@ class HandlerTests(unittest.TestCase):
)
def test_basic_and_digest_auth_handlers(self):
- # HTTPDigestAuthHandler threw an exception if it couldn't handle a 40*
+ # HTTPDigestAuthHandler raised an exception if it couldn't handle a 40*
# response (http://python.org/sf/1479302), where it should instead
# return None to allow another handler (especially
# HTTPBasicAuthHandler) to handle the response.
diff --git a/Lib/test/test_winreg.py b/Lib/test/test_winreg.py
index 918b312..c7b50dd 100644
--- a/Lib/test/test_winreg.py
+++ b/Lib/test/test_winreg.py
@@ -277,7 +277,7 @@ class LocalWinregTests(BaseWinregTests):
def test_long_key(self):
# Issue2810, in 2.6 and 3.1 when the key name was exactly 256
- # characters, EnumKey threw "WindowsError: More data is
+ # characters, EnumKey raised "WindowsError: More data is
# available"
name = 'x'*256
try: