tools/perf/cli_tools/flakiness_cli/api.py
def _Request(path, params=None):
  """Request json data from the test results server."""
  url = TEST_RESULTS_SERVER + path
  if params:
    url += '?' + six.moves.urllib.parse.urlencode(params)
  request = six.moves.urllib.request.Request(
      url, headers={'User-Agent': TOOL_USER_AGENT})
  response = six.moves.urllib.request.urlopen(request)
  return json.load(response)
Request json data from the test results server.
Request json data from the test results server.
Request json data from the test results server .
def _Request(path, params=None):
  url = TEST_RESULTS_SERVER + path
  if params:
    url += '?' + six.moves.urllib.parse.urlencode(params)
  request = six.moves.urllib.request.Request(
      url, headers={'User-Agent': TOOL_USER_AGENT})
  response = six.moves.urllib.request.urlopen(request)
  return json.load(response)
def _Request ( path , params = None ) : url = TEST_RESULTS_SERVER + path if params : url += '?' + six . moves . urllib . parse . urlencode ( params ) request = six . moves . urllib . request . Request ( url , headers = { 'User-Agent' : TOOL_USER_AGENT } ) response = six . moves . urllib . request . urlopen ( request ) return json . load ( response )
Request json data from the test results server.
Request json data from the test results server .
"""Request json data from the test results server."""
path
params