# HG changeset patch # User Augie Fackler # Date 1394644862 14400 # Node ID 2761a791b113b84060b2df7bf25407f759293992 # Parent 6cb419dd3703ed59fc03c3996916e87a880a4f02 test-filelog: move from dict() construction to {} literals The latter are both faster and more consistent across Python 2 and 3. diff -r 6cb419dd3703 -r 2761a791b113 tests/test-filelog.py --- a/tests/test-filelog.py Wed Mar 12 13:20:42 2014 -0400 +++ b/tests/test-filelog.py Wed Mar 12 13:21:02 2014 -0400 @@ -13,7 +13,7 @@ def addrev(text, renamed=False): if renamed: # data doesn't matter. Just make sure filelog.renamed() returns True - meta = dict(copyrev=hex(nullid), copy='bar') + meta = {'copyrev': hex(nullid), 'copy': 'bar'} else: meta = {}