diff options
author | 2005-08-05 04:41:07 +0000 | |
---|---|---|
committer | 2005-08-05 04:41:07 +0000 | |
commit | de0b1c21c4cb81d52e7a8e2e66518257008637f6 (patch) | |
tree | de54c3418a6558323b85634d8f356f605ba1942a | |
parent | fix header again (diff) | |
download | portage-cvs-de0b1c21c4cb81d52e7a8e2e66518257008637f6.tar.gz portage-cvs-de0b1c21c4cb81d52e7a8e2e66518257008637f6.tar.bz2 portage-cvs-de0b1c21c4cb81d52e7a8e2e66518257008637f6.zip |
use set, not dict for valid.
-rwxr-xr-x | rewrite-misc/utilities/clone_cache.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rewrite-misc/utilities/clone_cache.py b/rewrite-misc/utilities/clone_cache.py index da09e46..649f4a5 100755 --- a/rewrite-misc/utilities/clone_cache.py +++ b/rewrite-misc/utilities/clone_cache.py @@ -23,17 +23,17 @@ if __name__ == "__main__": if not cache2.autocommits: cache2.sync_rate = 1000 if verbose: print "grabbing cache2's existing keys" - valid = {} + valid = set() start = time.time() if verbose: for k,v in cache1.iteritems(): print "updating %s" % k cache2[k] = v - valid[k] = True + valid.add(k) else: for k,v in cache1.iteritems(): cache2[k] = v - valid[k] = True + valid.add(k) for x in cache2.iterkeys(): if not x in valid: |