This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mcjeff
Recipients mcjeff
Date 2011-06-19.17:26:05
SpamBayes Score 1.027547e-05
Marked as misclassified No
Message-id <1308504365.98.0.668285563314.issue12365@psf.upfronthosting.co.za>
In-reply-to
Content
Per discussion within Issue10050, URLopener ought to support the context manager protocol. That allows more idiomatic usage and doesn't require calls to contextlib.closing for use with the 'with' statement.

If agreed, I'll create a patch.
History
Date User Action Args
2011-06-19 17:26:06mcjeffsetrecipients: + mcjeff
2011-06-19 17:26:05mcjeffsetmessageid: <1308504365.98.0.668285563314.issue12365@psf.upfronthosting.co.za>
2011-06-19 17:26:05mcjefflinkissue12365 messages
2011-06-19 17:26:05mcjeffcreate