Message235581
Here is a patch to change the urlopen() examples to use context managers where appropriate.
There were also a few examples of handling HTTPError which I didn’t touch, because the whole file object versus exception object thing is probably a separate can of worms. |
|
Date |
User |
Action |
Args |
2015-02-09 01:22:17 | martin.panter | set | recipients:
+ martin.panter, terry.reedy, ncoghlan, orsenthil, ezio.melotti, eric.araujo, docs@python, Valery.Khamenya, javawizard |
2015-02-09 01:22:17 | martin.panter | set | messageid: <1423444937.6.0.576881580862.issue12955@psf.upfronthosting.co.za> |
2015-02-09 01:22:17 | martin.panter | link | issue12955 messages |
2015-02-09 01:22:16 | martin.panter | create | |
|