chrome/test/chromedriver/log_replay/client_replay.py
def _ReplaceUrl(payload, base_url):
  """Swap out the base URL (starting with protocol) in this payload.

  Useful when switching ports or URLs.

  Args:
    payload: payload in which to do the url replacement
    base_url: url to replace any applicable urls in |payload| with.
  """
  if base_url and "url" in payload:
    payload["url"] = re.sub(r"^https?://((?!/).)*/",
                            base_url + "/", payload["url"])
Swap out the base URL (starting with protocol) in this payload.

  Useful when switching ports or URLs.

  Args:
    payload: payload in which to do the url replacement
    base_url: url to replace any applicable urls in |payload| with.
  
Swap out the base URL (starting with protocol) in this payload.
Useful when switching ports or URLs.
Swap out the base URL ( starting with protocol ) in this payload . Useful when switching ports or URLs .
def _ReplaceUrl(payload, base_url):
  if base_url and "url" in payload:
    payload["url"] = re.sub(r"^https?://((?!/).)*/",
                            base_url + "/", payload["url"])
def _ReplaceUrl ( payload , base_url ) : if base_url and "url" in payload : payload [ "url" ] = re . sub ( r"^https?://((?!/).)*/" , base_url + "/" , payload [ "url" ] )
Swap out the base URL (starting with protocol) in this payload.
Swap out the base URL ( starting with protocol ) in this payload .
"""Swap out the base URL (starting with protocol) in this payload.

  Useful when switching ports or URLs.

  Args:
    payload: payload in which to do the url replacement
    base_url: url to replace any applicable urls in |payload| with.
  """
payload
payload in which to do the url replacement
payload in which to do the url replacement
base_url
url to replace any applicable urls in |payload| with.
url to replace any applicable urls in |payload| with .