def answer(self, signatory):
        is_valid = signatory.verify(self.assoc_handle, self.signed)
        # Now invalidate that assoc_handle so it this checkAuth message cannot
        # be replayed.
        signatory.invalidate(self.assoc_handle, dumb=True)
        response = OpenIDResponse(self)
        valid_str = (is_valid and "true") or "false"
        response.fields.setArg(OPENID_NS, 'is_valid', valid_str)

        if self.invalidate_handle:
            assoc = signatory.getAssociation(self.invalidate_handle, dumb=False)
            if not assoc:
                response.fields.setArg(
                    OPENID_NS, 'invalidate_handle', self.invalidate_handle)
        return response
Generate lines in Pajek graph format.
dataset/ETHPy150Open CollabQ/CollabQ/openid/server/server.py/CheckAuthRequest.answer--crossover with--dataset/ETHPy150Open networkx/networkx/networkx/readwrite/pajek.py/generate_pajek