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.
Showing
- hgext/bookmarks.py 2 additions, 2 deletionshgext/bookmarks.py
- hgext/rebase.py 1 addition, 1 deletionhgext/rebase.py
- mercurial/commands.py 3 additions, 3 deletionsmercurial/commands.py
- mercurial/copies.py 1 addition, 1 deletionmercurial/copies.py
- mercurial/filelog.py 1 addition, 1 deletionmercurial/filelog.py
- mercurial/hgweb/webcommands.py 2 additions, 2 deletionsmercurial/hgweb/webcommands.py
- mercurial/hgweb/wsgicgi.py 1 addition, 1 deletionmercurial/hgweb/wsgicgi.py
- mercurial/ignore.py 2 additions, 2 deletionsmercurial/ignore.py
- mercurial/keepalive.py 1 addition, 1 deletionmercurial/keepalive.py
- mercurial/localrepo.py 6 additions, 6 deletionsmercurial/localrepo.py
- mercurial/lsprof.py 1 addition, 1 deletionmercurial/lsprof.py
- mercurial/merge.py 2 additions, 2 deletionsmercurial/merge.py
- mercurial/sshrepo.py 1 addition, 1 deletionmercurial/sshrepo.py
- mercurial/verify.py 1 addition, 1 deletionmercurial/verify.py
Loading
Please register or sign in to comment