[Zodb-checkins] CVS: Packages/StorageGC - GCableGraph.py:1.4
tim@digicool.com
tim@digicool.com
Thu, 19 Apr 2001 17:09:24 -0400 (EDT)
Update of /cvs-repository/Packages/StorageGC
In directory korak:/tmp/cvs-serv31707
Modified Files:
GCableGraph.py
Log Message:
Simplify the final step of the M&S trash detector.
--- Updated File GCableGraph.py in package Packages/StorageGC --
--- GCableGraph.py 2001/04/19 21:05:24 1.3
+++ GCableGraph.py 2001/04/19 21:09:23 1.4
@@ -93,11 +93,10 @@
if not tc.has_key(x):
outside_tc[x] = 1
reachable = self._transitive_closure(outside_tc.keys())
- result = {}
+ result = []
for x in tc.keys():
if not reachable.has_key(x):
- result[x] = 1
- result = result.keys()
+ result.append(x)
if sorted:
result.sort()
return result