[PATCH] store: py26 compat, don't use a dict comprehension
Martijn Pieters
mj at zopatista.com
Sun Oct 9 11:04:15 UTC 2016
# HG changeset patch
# User Martijn Pieters <mjpieters at fb.com>
# Date 1476010702 -7200
# Sun Oct 09 12:58:22 2016 +0200
# Node ID b49b0430810e1c398d05835dcebd21edf7596639
# Parent 74cd33c9be76c11ba42ba5f2448dcf90419866ba
store: py26 compat, don't use a dict comprehension
diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -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)]:
More information about the Mercurial-devel
mailing list