[Checkins] SVN: transaction/branches/sphinx/ PEP8, whitespace.
Tres Seaver
cvs-admin at zope.org
Mon Dec 17 22:09:04 UTC 2012
Log message for revision 128715:
PEP8, whitespace.
Changed:
_U transaction/branches/sphinx/
U transaction/branches/sphinx/transaction/_manager.py
-=-
Modified: transaction/branches/sphinx/transaction/_manager.py
===================================================================
--- transaction/branches/sphinx/transaction/_manager.py 2012-12-17 22:09:03 UTC (rev 128714)
+++ transaction/branches/sphinx/transaction/_manager.py 2012-12-17 22:09:04 UTC (rev 128715)
@@ -21,9 +21,9 @@
from zope.interface import implementer
-from transaction.weakset import WeakSet
from transaction.interfaces import ITransactionManager
from transaction.interfaces import TransientError
+from transaction.weakset import WeakSet
from transaction._compat import reraise
from transaction._transaction import Transaction
@@ -54,6 +54,7 @@
# so that Transactions "see" synchronizers that get registered after the
# Transaction object is constructed.
+
@implementer(ITransactionManager)
class TransactionManager(object):
@@ -149,6 +150,7 @@
Each thread is associated with a unique transaction.
"""
+
class Attempt(object):
def __init__(self, manager):
@@ -160,7 +162,7 @@
if retry:
return retry # suppress the exception if necessary
reraise(t, v, tb) # otherwise reraise the exception
-
+
def __enter__(self):
return self.manager.__enter__()
@@ -172,4 +174,3 @@
return self._retry_or_raise(*sys.exc_info())
else:
return self._retry_or_raise(t, v, tb)
-
More information about the checkins
mailing list