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

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100517204219.4E487941B7__9891.02913667939$1274128944$gmane$org@cvs.zope.org>
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'),
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.