コード例 #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
コード例 #2
0
ファイル: core.py プロジェクト: tomduck/pandoc-xnos
 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