Commit 0a6ea739 authored by Jeremy Hylton's avatar Jeremy Hylton

Change quotes.

parent 4b487fad
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
############################################################################## ##############################################################################
"""Transaction management """Transaction management
$Id: Transaction.py,v 1.40 2002/11/18 23:17:40 jeremy Exp $""" $Id: Transaction.py,v 1.41 2002/12/02 22:16:58 jeremy Exp $"""
__version__='$Revision: 1.40 $'[11:-2] __version__='$Revision: 1.41 $'[11:-2]
import time, sys, struct, POSException import time, sys, struct, POSException
from struct import pack from struct import pack
...@@ -96,12 +96,11 @@ class Transaction: ...@@ -96,12 +96,11 @@ class Transaction:
if self._objects: self.abort(freeme=0) if self._objects: self.abort(freeme=0)
def abort(self, subtransaction=0, freeme=1): def abort(self, subtransaction=0, freeme=1):
'''Abort the transaction. """Abort the transaction.
This is called from the application. This means that we haven\'t This is called from the application. This means that we haven\'t
entered two-phase commit yet, so no tpc_ messages are sent. entered two-phase commit yet, so no tpc_ messages are sent.
''' """
if subtransaction and (self._non_st_objects is not None): if subtransaction and (self._non_st_objects is not None):
raise POSException.TransactionError, ( raise POSException.TransactionError, (
"""Attempted to abort a sub-transaction, but a participating """Attempted to abort a sub-transaction, but a participating
......
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