Skip to content
Snippets Groups Projects
Commit e91779a6 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

shorter

parent c3761216
No related branches found
No related tags found
No related merge requests found
...@@ -83,7 +83,7 @@ class _ChildField(_ComputedField): ...@@ -83,7 +83,7 @@ class _ChildField(_ComputedField):
""" """
def __init__(self, name, xml_tag, fun, postexec=nop): def __init__(self, name, xml_tag, fun, postexec=nop):
super(_ChildField, self).__init__(name, lambda elem: \ 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): def get_docs(elem, label):
"""Parse an XML element. Return documentation""" """Parse an XML element. Return documentation"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment