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 gruszczy
Recipients gruszczy, moyix, r.david.murray
Date 2011-04-07.21:14:27
SpamBayes Score 0.0006421072
Marked as misclassified No
Message-id <1302210868.35.0.993781826786.issue11767@psf.upfronthosting.co.za>
In-reply-to
Content
I am sorry. This is the first time I see contextlib and haven't understood, that I should use a function from it. Here is a version with mock object having close method and __getitem__ using contextlib.closing.
History
Date User Action Args
2011-04-07 21:14:28gruszczysetrecipients: + gruszczy, r.david.murray, moyix
2011-04-07 21:14:28gruszczysetmessageid: <1302210868.35.0.993781826786.issue11767@psf.upfronthosting.co.za>
2011-04-07 21:14:27gruszczylinkissue11767 messages
2011-04-07 21:14:27gruszczycreate