From: <sir...@us...> - 2003-03-28 13:38:08
|
Update of /cvsroot/btplusplus/BT++/src/core In directory sc8-pr-cvs1:/tmp/cvs-serv17547/src/core Modified Files: Storage.py Log Message: - Fixed pause. - Fixed cancel. Index: Storage.py =================================================================== RCS file: /cvsroot/btplusplus/BT++/src/core/Storage.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Storage.py 28 Mar 2003 12:44:28 -0000 1.3 --- Storage.py 28 Mar 2003 13:38:04 -0000 1.4 *************** *** 62,66 **** if time() - tstart > alloc_pause: if not hit: ! statusfunc(activity = 'allocating') hit = true statusfunc(fractionDone = float(so_far + i - l)/total) --- 62,66 ---- if time() - tstart > alloc_pause: if not hit: ! statusfunc(activity = 'Allocating') hit = true statusfunc(fractionDone = float(so_far + i - l)/total) *************** *** 72,75 **** --- 72,79 ---- for file, old in self.handles.items(): self.handles[file] = open(file, 'rb') + old.close() + + def close(self): + for file, old in self.handles.items(): old.close() |