Ticket #1805: tahoe_cp.py.patch
File tahoe_cp.py.patch, 1.8 KB (added by ChosenOne, at 2012-09-14T12:20:50Z) |
---|
-
tahoe_cp.py
old new 103 103 self.children = {} 104 104 children = listdir_unicode(self.pathname) 105 105 for i,n in enumerate(children): 106 self.progressfunc("examining %d of %d" % (i , len(children)))106 self.progressfunc("examining %d of %d" % (i+1, len(children))) 107 107 pn = os.path.join(self.pathname, n) 108 108 if os.path.isdir(pn): 109 109 child = LocalDirectorySource(self.progressfunc, pn) … … 131 131 self.children = {} 132 132 children = listdir_unicode(self.pathname) 133 133 for i,n in enumerate(children): 134 self.progressfunc("examining %d of %d" % (i , len(children)))134 self.progressfunc("examining %d of %d" % (i+1, len(children))) 135 135 n = unicode(n) 136 136 pn = os.path.join(self.pathname, n) 137 137 if os.path.isdir(pn): … … 239 239 return 240 240 self.children = {} 241 241 for i,(name, data) in enumerate(self.children_d.items()): 242 self.progressfunc("examining %d of %d" % (i , len(self.children_d)))242 self.progressfunc("examining %d of %d" % (i+1, len(self.children_d))) 243 243 if data[0] == "filenode": 244 244 mutable = data[1].get("mutable", False) 245 245 writecap = to_str(data[1].get("rw_uri")) … … 333 333 return 334 334 self.children = {} 335 335 for i,(name, data) in enumerate(self.children_d.items()): 336 self.progressfunc("examining %d of %d" % (i , len(self.children_d)))336 self.progressfunc("examining %d of %d" % (i+1, len(self.children_d))) 337 337 if data[0] == "filenode": 338 338 mutable = data[1].get("mutable", False) 339 339 writecap = to_str(data[1].get("rw_uri"))