Commits

Peter Arrenbrecht committed 08f3d8d

make walk work when heads is a set

Comments (0)

Files changed (1)

 
     def walk(self, heads=None, stops=None):
         '''iterate ids from heads to stops (or root), depth-first'''
-        pending = (heads or self.heads())[:]
+        pending = list(heads or self.heads())
         seen = set(stops or [])
         while pending:
             id = pending.pop()