(self, key)
Deleting tag[key] deletes all 'key' attributes for the tag.
Deleting tag[key] deletes all 'key' attributes for the tag.
Deleting tag [ key ] deletes all key attributes for the tag .
def __delitem__(self, key):
        "Deleting tag[key] deletes all 'key' attributes for the tag."
        for item in self.attrs:
            if item[0] == key:
                self.attrs.remove(item)
                #We don't break because bad HTML can define the same
                #attribute multiple times.
            self._getAttrMap()
            if self.attrMap.has_key(key):
                del self.attrMap[key]
def __delitem__ ( self , key ) : for item in self . attrs : if item [ 0 ] == key : self . attrs . remove ( item ) #We don't break because bad HTML can define the same #attribute multiple times. self . _getAttrMap ( ) if self . attrMap . has_key ( key ) : del self . attrMap [ key ]