Show More
@@ -341,7 +341,7 b' class hybrid(wrapped):' | |||||
341 | def tovalue(self, context, mapping): |
|
341 | def tovalue(self, context, mapping): | |
342 | # TODO: make it non-recursive for trivial lists/dicts |
|
342 | # TODO: make it non-recursive for trivial lists/dicts | |
343 | xs = self._values |
|
343 | xs = self._values | |
344 |
if util.safehasattr(xs, |
|
344 | if util.safehasattr(xs, 'get'): | |
345 | return {k: unwrapvalue(context, mapping, v) for k, v in xs.items()} |
|
345 | return {k: unwrapvalue(context, mapping, v) for k, v in xs.items()} | |
346 | return [unwrapvalue(context, mapping, x) for x in xs] |
|
346 | return [unwrapvalue(context, mapping, x) for x in xs] | |
347 |
|
347 |
General Comments 0
You need to be logged in to leave comments.
Login now