[Zodb-checkins] SVN: ZODB/branches/jim-transform-wrapping/src/ZODB/tests/hexstorage.py stop using StorageStopIteration

Jim Fulton jim at zope.com
Mon May 17 16:42:19 EDT 2010


Log message for revision 112430:
  stop using StorageStopIteration

Changed:
  U   ZODB/branches/jim-transform-wrapping/src/ZODB/tests/hexstorage.py

-=-
Modified: ZODB/branches/jim-transform-wrapping/src/ZODB/tests/hexstorage.py
===================================================================
--- ZODB/branches/jim-transform-wrapping/src/ZODB/tests/hexstorage.py	2010-05-17 20:26:58 UTC (rev 112429)
+++ ZODB/branches/jim-transform-wrapping/src/ZODB/tests/hexstorage.py	2010-05-17 20:42:18 UTC (rev 112430)
@@ -81,13 +81,9 @@
             transaction)
 
     def iterator(self, start=None, stop=None):
-        def it(start, stop):
-            for t in self.base.iterator(start, stop):
-                yield Transaction(self, t)
+        for t in self.base.iterator(start, stop):
+            yield Transaction(self, t)
 
-        return it(start, stop)
-
-
     def storeBlob(self, oid, oldserial, data, blobfilename, version,
                   transaction):
         return self.base.storeBlob(oid, oldserial, data.encode('hex'),



More information about the Zodb-checkins mailing list