Just by curiosity, in the function displayed above, the first and third "if" sentences are identical, is that correct?
def _add_to_revocation_list(self, data):
data_json = jsonutils.dumps(data)
if not self.client.append(self.revocation_key, ',%s' % data_json):
if not self.client.add(self.revocation_key, data_json):
if not self.client.append(self.revocation_key, ',%s' % data_json): msg = _('Unable to add token to revocation list.') raise exception.UnexpectedError(msg)
Just by curiosity, in the function displayed above, the first and third "if" sentences are identical, is that correct?
def _add_to_ revocation_ list(self, data): dumps(data) append( self.revocation _key, ',%s' % data_json): add(self. revocation_ key, data_json): append( self.revocation _key,
',%s' % data_json):
msg = _('Unable to add token to revocation list.')
raise exception. UnexpectedError (msg)
data_json = jsonutils.
if not self.client.
if not self.client.
if not self.client.