commit | bc4af35f9ea902d0d4c992ee5e6613b708007f5e | [log] [tgz] |
---|---|---|
author | Georg Brandl <georg@python.org> | Fri May 22 10:40:00 2009 +0000 |
committer | Georg Brandl <georg@python.org> | Fri May 22 10:40:00 2009 +0000 |
tree | b3606afd534e10bfc41945790ce965f3cf41da39 | |
parent | 346a38dbc0cc28c4a308f81e41bc0a4f81eb49ea [diff] [blame] |
#6086: fix spelling and use a better exception to catch.
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index 96f2ce2..629c38d 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst
@@ -311,7 +311,7 @@ >>> req = urllib2.Request('http://www.python.org/fish.html') >>> try: >>> urllib2.urlopen(req) - >>> except URLError, e: + >>> except HTTPError, e: >>> print e.code >>> print e.read() >>>