equal
deleted
inserted
replaced
260 if len(args) != 2: |
260 if len(args) != 2: |
261 # i18n: "get" is a keyword |
261 # i18n: "get" is a keyword |
262 raise error.ParseError(_("get() expects two arguments")) |
262 raise error.ParseError(_("get() expects two arguments")) |
263 |
263 |
264 dictarg = evalwrapped(context, mapping, args[0]) |
264 dictarg = evalwrapped(context, mapping, args[0]) |
265 key = evalfuncarg(context, mapping, args[1]) |
265 key = evalrawexp(context, mapping, args[1]) |
266 try: |
266 try: |
267 return dictarg.getmember(context, mapping, key) |
267 return dictarg.getmember(context, mapping, key) |
268 except error.ParseError as err: |
268 except error.ParseError as err: |
269 # i18n: "get" is a keyword |
269 # i18n: "get" is a keyword |
270 hint = _("get() expects a dict as first argument") |
270 hint = _("get() expects a dict as first argument") |