when did transaction lose the ability to be usable as a context manager?
Chris Withers <[email protected]>
| Newsgroups | gmane.comp.web.zope.devel,gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
I used to do this:
>>> import transaction
>>> with transaction:
... print 'hello'
...
Traceback (most recent call last):
File "<console>", line 1, in <module>
AttributeError: __exit__
When did that stop working and what should I now do instead?
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
_______________________________________________
Zope-Dev maillist - [email protected]
https://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
https://mail.zope.org/mailman/listinfo/zope-announce
https://mail.zope.org/mailman/listinfo/zope )