diff options
author | Georg Brandl <georg@python.org> | 2009-05-22 10:44:31 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-05-22 10:44:31 (GMT) |
commit | fe5f4098acfe3c95fe6489b747a398cba46e734f (patch) | |
tree | 7dde8acf5dc9cb0f91f229b7fbfe0958657786fc /Doc/howto/urllib2.rst | |
parent | 4f6da63f450459c71f2a22dc7b0351c48f391225 (diff) | |
download | cpython-fe5f4098acfe3c95fe6489b747a398cba46e734f.zip cpython-fe5f4098acfe3c95fe6489b747a398cba46e734f.tar.gz cpython-fe5f4098acfe3c95fe6489b747a398cba46e734f.tar.bz2 |
Recorded merge of revisions 72830 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r72830 | georg.brandl | 2009-05-22 12:40:00 +0200 (Fr, 22 Mai 2009) | 1 line
#6086: fix spelling and use a better exception to catch.
........
Diffstat (limited to 'Doc/howto/urllib2.rst')
-rw-r--r-- | Doc/howto/urllib2.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/howto/urllib2.rst b/Doc/howto/urllib2.rst index dfa6d0e..8a3accd 100644 --- a/Doc/howto/urllib2.rst +++ b/Doc/howto/urllib2.rst @@ -313,7 +313,7 @@ geturl, and info, methods as returned by the ``urllib.response`` module:: >>> req = urllib.request.Request('http://www.python.org/fish.html') >>> try: >>> urllib.request.urlopen(req) - >>> except urllib.error.URLError as e: + >>> except urllib.error.HTTPError as e: >>> print(e.code) >>> print(e.read()) >>> |