Exemplo n.º 1
0
 def Element(*value):  # pylint: disable=invalid-name
     """Creates an element."""
     el = _elt(eltType, numargs)(*value)
     if type(el['c']) == tuple:
         el['c'] = list(el['c'])  # The content should be a list, not tuple
     return el
Exemplo n.º 2
0
 def Element(*value):  # pylint: disable=invalid-name
     """Creates an element."""
     el = _elt(eltType, numargs)(*value)
     if isinstance(el['c'], tuple):
         el['c'] = list(el['c'])  # The content should be a list, not tuple
     return el