Commit dd3304ef authored by Tim Peters's avatar Tim Peters

Trim trailing whitespace.

parent 14c73271
...@@ -24,7 +24,6 @@ class ITransactionManager(zope.interface.Interface): ...@@ -24,7 +24,6 @@ class ITransactionManager(zope.interface.Interface):
Applications use transaction managers to establish transaction boundaries. Applications use transaction managers to establish transaction boundaries.
""" """
def begin(): def begin():
"""Begin a new transaction. """Begin a new transaction.
...@@ -52,14 +51,12 @@ class ITransactionManager(zope.interface.Interface): ...@@ -52,14 +51,12 @@ class ITransactionManager(zope.interface.Interface):
An ISavepoint object is returned. An ISavepoint object is returned.
""" """
def registerSynch(synch): def registerSynch(synch):
"""Register an ISynchronizer. """Register an ISynchronizer.
Synchronizers are notified at the beginning and end of Synchronizers are notified at the beginning and end of
transaction completion. transaction completion.
""" """
def unregisterSynch(synch): def unregisterSynch(synch):
...@@ -67,7 +64,6 @@ class ITransactionManager(zope.interface.Interface): ...@@ -67,7 +64,6 @@ class ITransactionManager(zope.interface.Interface):
Synchronizers are notified at the beginning and end of Synchronizers are notified at the beginning and end of
transaction completion. transaction completion.
""" """
class ITransaction(zope.interface.Interface): class ITransaction(zope.interface.Interface):
...@@ -139,7 +135,6 @@ class ITransaction(zope.interface.Interface): ...@@ -139,7 +135,6 @@ class ITransaction(zope.interface.Interface):
The datamanager must implement the The datamanager must implement the
transactions.interfaces.IDataManager interface, and be transactions.interfaces.IDataManager interface, and be
adaptable to ZODB.interfaces.IDataManager. adaptable to ZODB.interfaces.IDataManager.
""" """
def note(text): def note(text):
...@@ -325,14 +320,13 @@ class IDataManagerSavepoint(zope.interface.Interface): ...@@ -325,14 +320,13 @@ class IDataManagerSavepoint(zope.interface.Interface):
"""Savepoint for data-manager changes for use in transaction savepoints """Savepoint for data-manager changes for use in transaction savepoints
Datamanager savepoints are used by, and only by, transaction savepoints. Datamanager savepoints are used by, and only by, transaction savepoints.
Note that data manager savepoints don't have any notion of or Note that data manager savepoints don't have any notion of or
responsibility for validity. It isn't the responsibility of responsibility for validity. It isn't the responsibility of
data-manager savepoints to prevent multiple rollbacks or rollbacks data-manager savepoints to prevent multiple rollbacks or rollbacks
after transaction termination. Preventing invalid savepoint after transaction termination. Preventing invalid savepoint
rollback is the responsibility of transaction rollbacks. rollback is the responsibility of transaction rollbacks.
Application code should never use data-manager savepoints. Application code should never use data-manager savepoints.
""" """
def rollback(): def rollback():
...@@ -348,7 +342,7 @@ class ISavepoint(zope.interface.Interface): ...@@ -348,7 +342,7 @@ class ISavepoint(zope.interface.Interface):
An InvalidSavepointRollbackError is raised if the savepoint An InvalidSavepointRollbackError is raised if the savepoint
isn't valid. isn't valid.
""" """
valid = zope.interface.Attribute( valid = zope.interface.Attribute(
...@@ -375,4 +369,3 @@ class ISynchronizer(zope.interface.Interface): ...@@ -375,4 +369,3 @@ class ISynchronizer(zope.interface.Interface):
def afterCompletion(transaction): def afterCompletion(transaction):
"""Hook that is called by the transaction after completing a commit. """Hook that is called by the transaction after completing a commit.
""" """
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment