From e91779a629e659cdcf1d32133fd85e5338ea944b Mon Sep 17 00:00:00 2001 From: Piotr Maslanka <piotr.maslanka@henrietta.com.pl> Date: Sun, 8 Oct 2017 10:45:06 +0200 Subject: [PATCH] shorter --- coolamqp/framing/compilation/xml_fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coolamqp/framing/compilation/xml_fields.py b/coolamqp/framing/compilation/xml_fields.py index 173b11e..dfcb8f1 100644 --- a/coolamqp/framing/compilation/xml_fields.py +++ b/coolamqp/framing/compilation/xml_fields.py @@ -83,7 +83,7 @@ class _ChildField(_ComputedField): """ def __init__(self, name, xml_tag, fun, postexec=nop): super(_ChildField, self).__init__(name, lambda elem: \ - postexec([fun, _get_tagchild(elem, xml_tag)])) + postexec([fun(c) for c in _get_tagchild(elem, xml_tag)])) def get_docs(elem, label): """Parse an XML element. Return documentation""" -- GitLab