[Zodb-checkins] SVN: ZODB/branches/jim-no-proxy/src/ZODB/MappingStorage.py Cleanup.

Jim Fulton jim at zope.com
Tue May 4 16:18:55 EDT 2010


Log message for revision 111946:
  Cleanup.
  

Changed:
  U   ZODB/branches/jim-no-proxy/src/ZODB/MappingStorage.py

-=-
Modified: ZODB/branches/jim-no-proxy/src/ZODB/MappingStorage.py
===================================================================
--- ZODB/branches/jim-no-proxy/src/ZODB/MappingStorage.py	2010-05-04 20:16:15 UTC (rev 111945)
+++ ZODB/branches/jim-no-proxy/src/ZODB/MappingStorage.py	2010-05-04 20:18:55 UTC (rev 111946)
@@ -18,7 +18,6 @@
 """
 
 import BTrees
-import cPickle
 import time
 import threading
 import ZODB.interfaces
@@ -28,7 +27,7 @@
 import zope.interface
 
 class MappingStorage(object):
-    
+
     zope.interface.implements(
         ZODB.interfaces.IStorage,
         ZODB.interfaces.IStorageIteration,
@@ -50,7 +49,7 @@
 
     ######################################################################
     # Preconditions:
-    
+
     def opened(self):
         """The storage is open
         """
@@ -94,7 +93,7 @@
         if tid_data:
             return tid_data.maxKey()
         raise ZODB.POSException.POSKeyError(oid)
-        
+
     # ZODB.interfaces.IStorage
     @ZODB.utils.locked(opened)
     def history(self, oid, size=1):
@@ -124,7 +123,7 @@
     def iterator(self, start=None, end=None):
         for transaction_record in self._transactions.values(start, end):
             yield transaction_record
-        
+
     # ZODB.interfaces.IStorage
     @ZODB.utils.locked(opened)
     def lastTransaction(self):
@@ -165,7 +164,7 @@
         else:
             raise ZODB.POSException.POSKeyError(oid)
 
-            
+
     # ZODB.interfaces.IStorage
     @ZODB.utils.locked(opened)
     def loadSerial(self, oid, serial):
@@ -189,7 +188,7 @@
     def pack(self, t, referencesf, gc=True):
         if not self._data:
             return
-        
+
         stop = `ZODB.TimeStamp.TimeStamp(*time.gmtime(t)[:5]+(t%60,))`
         if self._last_pack is not None and self._last_pack >= stop:
             if self._last_pack == stop:
@@ -312,7 +311,7 @@
         self._transaction = None
         del self._tdata
         self._commit_lock.release()
- 
+
     # ZEO.interfaces.IServeable
     @ZODB.utils.locked(opened)
     def tpc_transaction(self):



More information about the Zodb-checkins mailing list