(self, chain)
Delete chain *chain* from the table.
Delete chain *chain* from the table.
Delete chain * chain * from the table .
def delete_chain(self, chain):
        """Delete chain *chain* from the table."""
        if isinstance(chain, Chain):
            chain = chain.name
        rv = self._iptc.iptc_delete_chain(chain.encode(), self._handle)
        if rv != 1:
            raise IPTCError("can't delete chain %s: %s" % (chain,
                                                           self.strerror()))
def delete_chain ( self , chain ) : if isinstance ( chain , Chain ) : chain = chain . name rv = self . _iptc . iptc_delete_chain ( chain . encode ( ) , self . _handle ) if rv != 1 : raise IPTCError ( "can't delete chain %s: %s" % ( chain , self . strerror ( ) ) )