# HG changeset patch # User Augie Fackler # Date 1394644804 14400 # Node ID 52e5aca15f0c220e66b97eb3fdd8406b0475ce93 # Parent d3d3e94e2910b11a32cbe319f22059a77026d0de webutil: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3. diff -r d3d3e94e2910 -r 52e5aca15f0c mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py Wed Mar 12 13:19:43 2014 -0400 +++ b/mercurial/hgweb/webutil.py Wed Mar 12 13:20:04 2014 -0400 @@ -146,7 +146,7 @@ def renamelink(fctx): r = fctx.renamed() if r: - return [dict(file=r[0], node=hex(r[1]))] + return [{'file': r[0], 'node': hex(r[1])}] return [] def nodetagsdict(repo, node):