mercurial/templatekw.py
changeset 47074 824ee4aaa09b
parent 47073 6ce1af5f0764
child 47195 9c4d30b079e0
--- a/mercurial/templatekw.py	Thu Apr 15 11:50:08 2021 +0200
+++ b/mercurial/templatekw.py	Thu Apr 15 12:08:34 2021 +0200
@@ -672,7 +672,10 @@
         d.update((o, v) for o, v in sorted(pycompat.iteritems(p.suboptions)))
         return d
 
-    return _hybrid(None, urls, makemap, lambda k: b'%s=%s' % (k, urls[k]))
+    def format_one(k):
+        return b'%s=%s' % (k, urls[k])
+
+    return _hybrid(None, urls, makemap, format_one)
 
 
 @templatekeyword(b"predecessors", requires={b'repo', b'ctx'})