Beispiel #1
0
 def _visible_items(self, db: DB) -> Iterator[Tuple[bytes, bytes]]:
     it = db.iteritems()  # noqa: B301
     it.seek_to_first()
     for i, x in enumerate(it):
         print('IT %r %r' % (i, x))
     for key, value in it:
         if key != self.offset_key:
             yield key, value
Beispiel #2
0
 def _visible_items(self, db: DB) -> Iterator[Tuple[bytes, bytes]]:
     it = db.iteritems()  # noqa: B301
     it.seek_to_first()
     for key, value in it:
         if key != self.offset_key:
             yield key, value