~barry/mailman/events-and-web

« back to all changes in this revision

Viewing changes to src/mailman/database/transaction.py

  • Committer: Barry Warsaw
  • Date: 2012-04-21 22:09:39 UTC
  • mfrom: (7149.1.1 3.0)
  • Revision ID: barry@list.org-20120421220939-p0czqg7eiron15it
Rename mailman.database.transaction.txn to ...transactional.  Modernize the
module, and use it in another convenient place.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
"""Transactional support."""
19
19
 
20
 
from __future__ import absolute_import, unicode_literals
 
20
from __future__ import absolute_import, print_function, unicode_literals
21
21
 
22
22
__metaclass__ = type
23
23
__all__ = [
24
 
    'txn',
 
24
    'transactional',
25
25
    ]
26
26
 
27
27
 
29
29
 
30
30
 
31
31
 
32
 
class txn(object):
 
32
class transactional:
33
33
    """Decorator for transactional support.
34
34
 
35
35
    When the function this decorator wraps exits cleanly, the current