(self, chain)
Zero the packet and byte counters of *chain*.
Zero the packet and byte counters of *chain*.
Zero the packet and byte counters of * chain * .
def zero_entries(self, chain):
        """Zero the packet and byte counters of *chain*."""
        if isinstance(chain, Chain):
            chain = chain.name
        rv = self._iptc.iptc_zero_entries(chain.encode(), self._handle)
        if rv != 1:
            raise IPTCError("can't zero chain %s counters: %s" %
                            (chain, self.strerror()))
def zero_entries ( self , chain ) : if isinstance ( chain , Chain ) : chain = chain . name rv = self . _iptc . iptc_zero_entries ( chain . encode ( ) , self . _handle ) if rv != 1 : raise IPTCError ( "can't zero chain %s counters: %s" % ( chain , self . strerror ( ) ) )