

def isEqualToNode(self, other):
    '\n        Compare this node to C{other}.  If the nodes have the same number of\n        children and corresponding children are equal to each other, return\n        C{True}, otherwise return C{False}.\n\n        @type other: L{Node}\n        @rtype: C{bool}\n        '
    if (len(self.childNodes) != len(other.childNodes)):
        return False
    for (a, b) in zip(self.childNodes, other.childNodes):
        if (not a.isEqualToNode(b)):
            return False
    return True

dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/web/microdom.py Node.isEqualToNode/original