Commit 8ca036d4 authored by Pablo Galindo's avatar Pablo Galindo Committed by Mariatta

bpo-32586: Fix code example in urllib2's doc (GH-5238)

It should be `urllib2.URLError` instead of just `URLError`.
parent b1a52b11
......@@ -203,7 +203,7 @@ e.g. ::
>>> req = urllib2.Request('http://www.pretend_server.org')
>>> try: urllib2.urlopen(req)
... except URLError as e:
... except urllib2.URLError as e:
... print e.reason #doctest: +SKIP
...
(4, 'getaddrinfo failed')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment