]> arthur.barton.de Git - bup.git/blobdiff - cmd/memtest-cmd.py
Use next(it), not it.next() and drop the helpers fallback
[bup.git] / cmd / memtest-cmd.py
index c4c531e22928c5c95cf03f6d75adaa3a7edd1c96..fb7a1205ed17e55c05d0e0824797b0ff9518243b 100755 (executable)
@@ -100,7 +100,7 @@ if opt.existing:
 for c in xrange(opt.cycles):
     for n in xrange(opt.number):
         if opt.existing:
-            bin = objit.next()
+            bin = next(objit)
             assert(m.exists(bin))
         else:
             bin = _helpers.random_sha()