Show More
@@ -261,7 +261,7 b' def get(context, mapping, args):' | |||
|
261 | 261 | # i18n: "get" is a keyword |
|
262 | 262 | raise error.ParseError(_("get() expects two arguments")) |
|
263 | 263 | |
|
264 |
dictarg = eval |
|
|
264 | dictarg = evalwrapped(context, mapping, args[0]) | |
|
265 | 265 | if not util.safehasattr(dictarg, 'get'): |
|
266 | 266 | # i18n: "get" is a keyword |
|
267 | 267 | raise error.ParseError(_("get() expects a dict as first argument")) |
@@ -662,7 +662,7 b' def runmap(context, mapping, data):' | |||
|
662 | 662 | |
|
663 | 663 | def runmember(context, mapping, data): |
|
664 | 664 | darg, memb = data |
|
665 |
d = eval |
|
|
665 | d = evalwrapped(context, mapping, darg) | |
|
666 | 666 | if util.safehasattr(d, 'tomap'): |
|
667 | 667 | lm = context.overlaymap(mapping, d.tomap()) |
|
668 | 668 | return runsymbol(context, lm, memb) |
General Comments 0
You need to be logged in to leave comments.
Login now