Author martin.panter
Recipients Valery.Khamenya, docs@python, eric.araujo, ezio.melotti, javawizard, martin.panter, ncoghlan, orsenthil, terry.reedy
Date 2015-02-09.01:22:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
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:17martin.pantersetrecipients: + martin.panter, terry.reedy, ncoghlan, orsenthil, ezio.melotti, eric.araujo, docs@python, Valery.Khamenya, javawizard
2015-02-09 01:22:17martin.pantersetmessageid: <>
2015-02-09 01:22:17martin.panterlinkissue12955 messages
2015-02-09 01:22:16martin.pantercreate