parameters: (self)
docstring: Retrieve currently accepted root certificates.
  
          Returns:
              a list of certificates (as raw binary strings).
  
          Raises:
              HTTPError, HTTPClientError, HTTPServerError: connection failed,
                  or returned an error. For logs that honour HTTP status codes,
                  HTTPClientError (a 4xx) should never happen.
              InvalidResponseError: server response is invalid for the given
                                    request.
docstring_summary: Retrieve currently accepted root certificates.
docstring_tokens: Retrieve currently accepted root certificates .
function: def get_roots(self):
          """Retrieve currently accepted root certificates.
  
          Returns:
              a list of certificates (as raw binary strings).
  
          Raises:
              HTTPError, HTTPClientError, HTTPServerError: connection failed,
                  or returned an error. For logs that honour HTTP status codes,
                  HTTPClientError (a 4xx) should never happen.
              InvalidResponseError: server response is invalid for the given
                                    request.
          """
          response = self._req_body(_GET_ROOTS_PATH)
          response = json.loads(response)
          try:
              return [base64.b64decode(u)for u in response["certificates"]]
          except (TypeError, ValueError, KeyError) as e:
              raise InvalidResponseError(
                  "%s returned invalid data: expected a list od base64-encoded "
                  "certificates, got %s\n%s" % (self.servername, response, e))
function_tokens: def get_roots ( self ) : response = self . _req_body ( _GET_ROOTS_PATH ) response = json . loads ( response ) try : return [ base64 . b64decode ( u ) for u in response [ "certificates" ] ] except ( TypeError , ValueError , KeyError ) as e : raise InvalidResponseError ( "%s returned invalid data: expected a list od base64-encoded " "certificates, got %s\n%s" % ( self . servername , response , e ) )