[Zodb-checkins] CVS: ZODB3/ZODB - FileStorage.py:1.105.2.19

Tim Peters tim.one at comcast.net
Thu Aug 21 13:27:00 EDT 2003


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

Modified Files:
      Tag: ZODB3-3_1-branch
	FileStorage.py 
Log Message:
Trimmed trailing whitespace.


=== ZODB3/ZODB/FileStorage.py 1.105.2.18 => 1.105.2.19 ===
--- ZODB3/ZODB/FileStorage.py:1.105.2.18	Thu Jul 24 14:47:55 2003
+++ ZODB3/ZODB/FileStorage.py	Thu Aug 21 12:26:59 2003
@@ -271,7 +271,7 @@
         r = self._restore_index()
         if r is not None:
             self._used_index = 1 # Marker for testing
-                                            
+
             index, vindex, start, maxoid, ltid = r
 
             self._initIndex(index, vindex, tindex, tvindex)
@@ -553,7 +553,7 @@
                 self._file.seek(U64(pnv))
                 h_pnv = self._file.read(DATA_VERSION_HDR_LEN)
                 newserial = h_pnv[8:16]
-            
+
             if self._index.get(oid) == srcpos:
                 # This is a current record!
                 self._tindex[oid] = here
@@ -880,7 +880,7 @@
         # If there is no previous record, there can't be a pnv.
         if not prev:
             return None
-        
+
         pnv = None
 
         # Load the record pointed to be prev
@@ -914,7 +914,7 @@
             else:
                 warn("restore could not find previous non-version data "
                      "at %d or %d" % (prev, bp))
-            
+
         return pnv
 
     def supportsUndo(self):
@@ -1012,13 +1012,13 @@
 
             # Update the number of records that we've written
             # +1 for the transaction record
-            self._records_written += len(self._tindex) + 1 
+            self._records_written += len(self._tindex) + 1
             if self._records_written >= self._records_before_save:
                 self._save_index()
                 self._records_written = 0
                 self._records_before_save = max(self._records_before_save,
                                                 len(self._index))
-                
+
         self._ltid = tid
 
     def _abort(self):
@@ -1477,14 +1477,14 @@
         """
         if self._is_read_only:
             raise POSException.ReadOnlyError()
-        
+
         stop=`apply(TimeStamp, time.gmtime(t)[:5]+(t%60,))`
         if stop==z64: raise FileStorageError, 'Invalid pack time'
 
         # If the storage is empty, there's nothing to do.
         if not self._index:
             return
-        
+
         # Record pack time so we don't undo while packing
         self._lock_acquire()
         try:




More information about the Zodb-checkins mailing list