(self, chain)
Returns the first rule in *chain* or *None* if it is empty.
Returns the first rule in *chain* or *None* if it is empty.
Returns the first rule in * chain * or * None * if it is empty .
def first_rule(self, chain):
        """Returns the first rule in *chain* or *None* if it is empty."""
        rule = self._iptc.iptc_first_rule(chain.encode(), self._handle)
        if rule:
            return rule[0]
        else:
            return rule
def first_rule ( self , chain ) : rule = self . _iptc . iptc_first_rule ( chain . encode ( ) , self . _handle ) if rule : return rule [ 0 ] else : return rule