(self, chain)
Flush all rules from *chain*.
Flush all rules from *chain*.
Flush all rules from * chain * .
def flush_entries(self, chain):
        """Flush all rules from *chain*."""
        if isinstance(chain, Chain):
            chain = chain.name
        rv = self._iptc.iptc_flush_entries(chain.encode(), self._handle)
        if rv != 1:
            raise IPTCError("can't flush chain %s: %s" % (chain,
                                                          self.strerror()))
def flush_entries ( self , chain ) : if isinstance ( chain , Chain ) : chain = chain . name rv = self . _iptc . iptc_flush_entries ( chain . encode ( ) , self . _handle ) if rv != 1 : raise IPTCError ( "can't flush chain %s: %s" % ( chain , self . strerror ( ) ) )