[Zope-Checkins] CVS: ZODB3/ZODB - Transaction.py:1.42

Jeremy Hylton jeremy@zope.com
Mon, 2 Dec 2002 17:21:17 -0500


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv16935

Modified Files:
	Transaction.py 
Log Message:
More display fiddling, and remove misleading Transaction docstring.


=== ZODB3/ZODB/Transaction.py 1.41 => 1.42 ===
--- ZODB3/ZODB/Transaction.py:1.41	Mon Dec  2 17:16:58 2002
+++ ZODB3/ZODB/Transaction.py	Mon Dec  2 17:21:16 2002
@@ -13,8 +13,8 @@
 ##############################################################################
 """Transaction management
 
-$Id$"""
-__version__='$Revision$'[11:-2]
+$Id$
+"""
 
 import time, sys, struct, POSException
 from struct import pack
@@ -48,12 +48,11 @@
     return cmp(k1, k2)
 
 class Transaction:
-    'Simple transaction objects for single-threaded applications.'
-    user=''
-    description=''
-    _connections=None
-    _extension=None
-    _sub=None # This is a subtrasaction flag
+    user = ''
+    description = ''
+    _connections = None
+    _extension = None
+    _sub = None # This is a subtrasaction flag
 
     # The _non_st_objects variable is either None or a list
     # of jars that do not support subtransactions. This is used to
@@ -163,10 +162,10 @@
                 self._init()
 
     def begin(self, info=None, subtransaction=None):
-        '''Begin a new transaction.
+        """Begin a new transaction.
 
         This aborts any transaction in progres.
-        '''
+        """
         if self._objects:
             self.abort(subtransaction, 0)
         if info:
@@ -175,8 +174,7 @@
             self.description=strip(join(info[1:],'\t'))
 
     def commit(self, subtransaction=None):
-        'Finalize the transaction'
-
+        ""Finalize the transaction."""
         objects = self._objects
 
         subjars = []