hgext/schemes.py
changeset 44452 9d2b2df2c2ba
parent 44022 c1ccefb513e4
child 45942 89a2afe31e82
--- a/hgext/schemes.py	Fri Mar 06 10:52:44 2020 +0100
+++ b/hgext/schemes.py	Fri Mar 06 13:27:41 2020 -0500
@@ -97,7 +97,7 @@
             parts = parts[:-1]
         else:
             tail = b''
-        context = dict((b'%d' % (i + 1), v) for i, v in enumerate(parts))
+        context = {b'%d' % (i + 1): v for i, v in enumerate(parts)}
         return b''.join(self.templater.process(self.url, context)) + tail