(elem)
Write element tree or element structure to sys.stdout.

    This function should be used for debugging only.

    *elem* is either an ElementTree, or a single Element.  The exact output
    format is implementation dependent.  In this version, it's written as an
    ordinary XML file.
Write element tree or element structure to sys.stdout.
Write element tree or element structure to sys . stdout .
def dump(elem):
    """Write element tree or element structure to sys.stdout.

    This function should be used for debugging only.

    *elem* is either an ElementTree, or a single Element.  The exact output
    format is implementation dependent.  In this version, it's written as an
    ordinary XML file.

    """
    # debugging
    if not isinstance(elem, ElementTree):
        elem = ElementTree(elem)
    elem.write(sys.stdout, encoding="unicode")
    tail = elem.getroot().tail
    if not tail or tail[-1] != "\n":
        sys.stdout.write("\n")
def dump ( elem ) : # debugging if not isinstance ( elem , ElementTree ) : elem = ElementTree ( elem ) elem . write ( sys . stdout , encoding = "unicode" ) tail = elem . getroot ( ) . tail if not tail or tail [ - 1 ] != "\n" : sys . stdout . write ( "\n" )