def sign(self, pairs):
        """
        Generate a signature for a sequence of (key, value) pairs


        @param pairs: The pairs to sign, in order

        @type pairs: sequence of (str, str)


        @return: The binary signature of this sequence of pairs

        @rtype: str
        """
        kv = kvform.seqToKV(pairs)

        try:
            mac = self._macs[self.assoc_type]
        except KeyError:
            raise ValueError(
                (self.assoc_type,) % 'Unknown association type: %r')

        return mac(self.secret, kv)
dataset/ETHPy150Open CollabQ/CollabQ/openid/association.py/Association.sign/swapped operands of `%`