[Zope-dev] when did transaction lose the ability to be usable as a context manager?

Chris Withers chris at simplistix.co.uk
Wed Feb 6 08:57:14 UTC 2013


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


More information about the Zope-Dev mailing list