Mercurial > public > mercurial-scm > hg-stable
diff mercurial/copies.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 | f67d1468ac50 |
children | 4a4c7f6a5912 |
line wrap: on
line diff
--- a/mercurial/copies.py Mon Jan 12 09:07:02 2009 +0100 +++ b/mercurial/copies.py Mon Jan 12 09:16:03 2009 +0100 @@ -189,7 +189,7 @@ # examine each file copy for a potential directory move, which is # when all the files in a directory are moved to a new directory - for dst, src in fullcopy.items(): + for dst, src in fullcopy.iteritems(): dsrc, ddst = _dirname(src), _dirname(dst) if dsrc in invalid: # already seen to be uninteresting