]> arthur.barton.de Git - bup.git/commitdiff
lib/gc: update lambda syntax for py3
authorJulien Goodwin <jgoodwin@studio442.com.au>
Thu, 30 Aug 2018 10:16:57 +0000 (20:16 +1000)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Sep 2018 20:29:29 +0000 (15:29 -0500)
Signed-off-by: Julien Goodwin <jgoodwin@studio442.com.au>
[rlb@defaultvalue.org: adjust commit summary]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/gc.py

index 6f645847d181c494ee762ca41287151bcafa2d9e..5a351f579750790968e547795b9d54b84dcc4d62 100644 (file)
@@ -102,7 +102,7 @@ def find_live_objects(existing_count, cat_pipe, verbosity=0):
     stop_at, trees_visited = None, None
     if prune_visited_trees:
         trees_visited = set()
-        stop_at = lambda (x): x.decode('hex') in trees_visited
+        stop_at = lambda x: x.decode('hex') in trees_visited
     approx_live_count = 0
     for ref_name, ref_id in git.list_refs():
         for item in walk_object(cat_pipe, ref_id.encode('hex'),