mercurial/store.py
changeset 44452 9d2b2df2c2ba
parent 44060 a61287a95dc3
child 45351 909dafff6a78
--- a/mercurial/store.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/mercurial/store.py	Fri Mar 06 13:27:41 2020 -0500
@@ -137,7 +137,7 @@
     asciistr = list(map(xchr, range(127)))
     capitals = list(range(ord(b"A"), ord(b"Z") + 1))
 
-    cmap = dict((x, x) for x in asciistr)
+    cmap = {x: x for x in asciistr}
     for x in _reserved():
         cmap[xchr(x)] = b"~%02x" % x
     for x in capitals + [ord(e)]:
@@ -200,7 +200,7 @@
     'the~07quick~adshot'
     '''
     xchr = pycompat.bytechr
-    cmap = dict([(xchr(x), xchr(x)) for x in pycompat.xrange(127)])
+    cmap = {xchr(x): xchr(x) for x in pycompat.xrange(127)}
     for x in _reserved():
         cmap[xchr(x)] = b"~%02x" % x
     for x in range(ord(b"A"), ord(b"Z") + 1):