Message170597
+ >>> try:
+ ... urllib.request.urlopen(req)
+ ... except urllib.error.URLError as e:
+ ... print("Error opening url.")
+ ... # E.g. "[Errno 8] nodename nor servname provided, or not known"
+ ... print("Reason:", e.reason) #doctest: +ELLIPSIS
+ Error opening url.
+ Reason: ...
I think the previous version was clearer, so maybe this should be a skip. |
|
Date |
User |
Action |
Args |
2012-09-17 11:58:07 | ezio.melotti | set | recipients:
+ ezio.melotti, orsenthil, chris.jerdonek, docs@python |
2012-09-17 11:58:07 | ezio.melotti | set | messageid: <1347883087.93.0.826021213894.issue15922@psf.upfronthosting.co.za> |
2012-09-17 11:58:07 | ezio.melotti | link | issue15922 messages |
2012-09-17 11:58:07 | ezio.melotti | create | |
|