]> arthur.barton.de Git - bup.git/blobdiff - cmd/index-cmd.py
rev_list: support custom formats
[bup.git] / cmd / index-cmd.py
index bb21b4ec23e5fd8e8b3ef67485575f36bd29e92a..2426f1f5ac8b54fee6e3f6c164c8e6f87a38a0f1 100755 (executable)
@@ -21,10 +21,7 @@ class IterHelper:
         self.next()
 
     def next(self):
-        try:
-            self.cur = self.i.next()
-        except StopIteration:
-            self.cur = None
+        self.cur = next(self.i, None)
         return self.cur