diff mercurial/cmdutil.py @ 3562:730ca93ed788

convert dict(zip(x,x)) to dict.fromkeys(x)
author Matt Mackall <mpm@selenic.com>
date Fri, 27 Oct 2006 00:38:42 -0500
parents 39011927fdb0
children b4ad640a3bcf
line wrap: on
line diff
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -140,7 +140,7 @@ def matchpats(repo, pats=[], opts={}, he
 
 def walk(repo, pats=[], opts={}, node=None, head='', badmatch=None):
     files, matchfn, anypats = matchpats(repo, pats, opts, head)
-    exact = dict(zip(files, files))
+    exact = dict.fromkeys(files)
     for src, fn in repo.walk(node=node, files=files, match=matchfn,
                              badmatch=badmatch):
         yield src, fn, util.pathto(repo.getcwd(), fn), fn in exact