diff mercurial/verify.py @ 7622:4dd7b28003d2

use dict.iteritems() rather than dict.items() This should be faster and more future-proof. Calls where the result is to be sorted using util.sort() have been left unchanged. Calls to .items() on configparser objects have been left as-is, too.
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Mon, 12 Jan 2009 09:16:03 +0100
parents 9fe97eea5510
children 43cfbb21f04d
line wrap: on
line diff
--- a/mercurial/verify.py	Mon Jan 12 09:07:02 2009 +0100
+++ b/mercurial/verify.py	Mon Jan 12 09:16:03 2009 +0100
@@ -220,7 +220,7 @@
 
         # cross-check
         if f in filenodes:
-            fns = [(mf.linkrev(l), n) for n,l in filenodes[f].items()]
+            fns = [(mf.linkrev(l), n) for n,l in filenodes[f].iteritems()]
             for lr, node in util.sort(fns):
                 err(lr, _("%s in manifests not found") % short(node), f)