summaryrefslogtreecommitdiff
path: root/Lib/wsgiref
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:26:36 +0200
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-18 21:26:36 +0200
commit5b89840d9cf11014a4b865d79497649f74bf2866 (patch)
treed3ff6d2bce57a9f4b89356c0519b2d6eb9cda7ad /Lib/wsgiref
parente2303f8970ee6f30d3781ad31f76530d135a57b5 (diff)
parent737fb89dd15e4db6ef30d25963e774ae09cc49dc (diff)
downloadcpython-git-5b89840d9cf11014a4b865d79497649f74bf2866.tar.gz
Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
Diffstat (limited to 'Lib/wsgiref')
-rw-r--r--Lib/wsgiref/validate.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/wsgiref/validate.py b/Lib/wsgiref/validate.py
index 05a485db7a..49eaa514cc 100644
--- a/Lib/wsgiref/validate.py
+++ b/Lib/wsgiref/validate.py
@@ -139,9 +139,9 @@ def validator(application):
When applied between a WSGI server and a WSGI application, this
middleware will check for WSGI compliancy on a number of levels.
This middleware does not modify the request or response in any
- way, but will throw an AssertionError if anything seems off
+ way, but will raise an AssertionError if anything seems off
(except for a failure to close the application iterator, which
- will be printed to stderr -- there's no way to throw an exception
+ will be printed to stderr -- there's no way to raise an exception
at that point).
"""