Ticket #3421: microdom.assert.diff

File microdom.assert.diff, 668 bytes (added by jparise, 6 years ago)

Corrects assert syntax

  • microdom.py

     
    178178        assert isinstance(newChild, Node) 
    179179        #if newChild.parentNode: 
    180180        #    newChild.parentNode.removeChild(newChild) 
    181         assert (oldChild.parentNode is self, 
    182                 ('oldChild (%s): oldChild.parentNode (%s) != self (%s)' 
    183                  % (oldChild, oldChild.parentNode, self))) 
     181        assert oldChild.parentNode is self 
    184182        self.childNodes[self.childNodes.index(oldChild)] = newChild 
    185183        oldChild.parentNode = None 
    186184        newChild.parentNode = self