# HG changeset patch # User Augie Fackler # Date 1394644877 14400 # Node ID 56b1f39dd0c11dbe8c6188fe3e248c5578073816 # Parent 2761a791b113b84060b2df7bf25407f759293992 test-url: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3. diff -r 2761a791b113 -r 56b1f39dd0c1 tests/test-url.py --- a/tests/test-url.py Wed Mar 12 13:21:02 2014 -0400 +++ b/tests/test-url.py Wed Mar 12 13:21:17 2014 -0400 @@ -5,7 +5,7 @@ print (a, b) def cert(cn): - return dict(subject=((('commonName', cn),),)) + return {'subject': ((('commonName', cn),),)} from mercurial.sslutil import _verifycert