mercurial/templatefuncs.py
changeset 38252 c2456a7726c1
parent 38251 ead71b15efd5
child 38254 12b6ee9e88f3
equal deleted inserted replaced
38251:ead71b15efd5 38252:c2456a7726c1
   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])