SVN: ZODB/branches/jim-no-proxy/src/ZODB/MappingStorage.py Cleanup.

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100504201855.4E3DC7083BC__6584.72149302742$1273004341$gmane$org@cvs.zope.org>
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):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.