Mercurial > hg
comparison mercurial/templatefuncs.py @ 48929:278030cc9353
templatefuncs: remove pycompat.iteritems()
Differential Revision: https://phab.mercurial-scm.org/D12334
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 21 Feb 2022 11:12:47 -0700 |
parents | f254fc73d956 |
children | 63fd0282ad40 |
comparison
equal
deleted
inserted
replaced
48928:ceafb0f81250 | 48929:278030cc9353 |
---|---|
86 raise error.ParseError(_(b"duplicated dict key '%s' inferred") % k) | 86 raise error.ParseError(_(b"duplicated dict key '%s' inferred") % k) |
87 data[k] = evalfuncarg(context, mapping, v) | 87 data[k] = evalfuncarg(context, mapping, v) |
88 | 88 |
89 data.update( | 89 data.update( |
90 (k, evalfuncarg(context, mapping, v)) | 90 (k, evalfuncarg(context, mapping, v)) |
91 for k, v in pycompat.iteritems(args[b'kwargs']) | 91 for k, v in args[b'kwargs'].items() |
92 ) | 92 ) |
93 return templateutil.hybriddict(data) | 93 return templateutil.hybriddict(data) |
94 | 94 |
95 | 95 |
96 @templatefunc( | 96 @templatefunc( |