store: py26 compat, don't use a dict comprehension
authorMartijn Pieters <mjpieters@fb.com>
Sun, 09 Oct 2016 12:58:22 +0200
changeset 30108 e1e7190457cf
parent 30107 da08f4707282
child 30109 96a2278ee732
store: py26 compat, don't use a dict comprehension
mercurial/store.py
--- a/mercurial/store.py	Sat Oct 08 16:51:18 2016 +0200
+++ b/mercurial/store.py	Sun Oct 09 12:58:22 2016 +0200
@@ -107,7 +107,7 @@
         asciistr = map(chr, xrange(127))
     capitals = list(range(ord("A"), ord("Z") + 1))
 
-    cmap = {x:x for x in asciistr}
+    cmap = dict((x, x) for x in asciistr)
     for x in _reserved():
         cmap[xchr(x)] = "~%02x" % x
     for x in capitals + [ord(e)]: