equal
deleted
inserted
replaced
259 attribute on these types.""" |
259 attribute on these types.""" |
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 = evalfuncarg(context, mapping, args[0]) |
264 dictarg = evalwrapped(context, mapping, args[0]) |
265 if not util.safehasattr(dictarg, 'get'): |
265 if not util.safehasattr(dictarg, 'get'): |
266 # i18n: "get" is a keyword |
266 # i18n: "get" is a keyword |
267 raise error.ParseError(_("get() expects a dict as first argument")) |
267 raise error.ParseError(_("get() expects a dict as first argument")) |
268 |
268 |
269 key = evalfuncarg(context, mapping, args[1]) |
269 key = evalfuncarg(context, mapping, args[1]) |