Mercurial > hg
changeset 30108:e1e7190457cf
store: py26 compat, don't use a dict comprehension
author | Martijn Pieters <mjpieters@fb.com> |
---|---|
date | Sun, 09 Oct 2016 12:58:22 +0200 |
parents | da08f4707282 |
children | 96a2278ee732 |
files | mercurial/store.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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)]: