testing/unexpected_passes_common/result_output.py
def _OutputUrlsForCommandLine(urls, description, file_handle=None):
  """Outputs |urls| for opening in a browser.

  The output string is meant to be passed to a browser via the command line in
  order to open all URLs in that browser, e.g.

  `google-chrome https://crbug.com/1234 https://crbug.com/2345`

  Args:
    urls: A list of strings containing URLs to output.
    description: A description of the URLs to be output.
    file_handle: A file handle to write the string to. Defaults to stdout.
  """
  file_handle = file_handle or sys.stdout

  def _StartsWithHttp(url):
    return url.startswith('https://') or url.startswith('http://')

  urls = [u if _StartsWithHttp(u) else 'https://%s' % u for u in urls]
  file_handle.write('%s: %s\n' % (description, ' '.join(urls)))
Outputs |urls| for opening in a browser.

  The output string is meant to be passed to a browser via the command line in
  order to open all URLs in that browser, e.g.

  `google-chrome https://crbug.com/1234 https://crbug.com/2345`

  Args:
    urls: A list of strings containing URLs to output.
    description: A description of the URLs to be output.
    file_handle: A file handle to write the string to. Defaults to stdout.
  
Outputs |urls| for opening in a browser.
The output string is meant to be passed to a browser via the command line in
order to open all URLs in that browser, e.g.


Outputs |urls| for opening in a browser . The output string is meant to be passed to a browser via the command line in order to open all URLs in that browser e . g .
def _OutputUrlsForCommandLine(urls, description, file_handle=None):
  file_handle = file_handle or sys.stdout
  def _StartsWithHttp(url):
    return url.startswith('https://') or url.startswith('http://')
  urls = [u if _StartsWithHttp(u) else 'https://%s' % u for u in urls]
  file_handle.write('%s: %s\n' % (description, ' '.join(urls)))
def _OutputUrlsForCommandLine ( urls , description , file_handle = None ) : file_handle = file_handle or sys . stdout def _StartsWithHttp ( url ) : return url . startswith ( 'https://' ) or url . startswith ( 'http://' ) urls = [ u if _StartsWithHttp ( u ) else 'https://%s' % u for u in urls ] file_handle . write ( '%s: %s\n' % ( description , ' ' . join ( urls ) ) )
Outputs |urls| for opening in a browser.
Outputs |urls| for opening in a browser .
"""Outputs |urls| for opening in a browser.

  The output string is meant to be passed to a browser via the command line in
  order to open all URLs in that browser, e.g.

  `google-chrome https://crbug.com/1234 https://crbug.com/2345`

  Args:
    urls: A list of strings containing URLs to output.
    description: A description of the URLs to be output.
    file_handle: A file handle to write the string to. Defaults to stdout.
  """
urls
A list of strings containing URLs to output.
A list of strings containing URLs to output .
description
A description of the URLs to be output.
A description of the URLs to be output .
file_handle
A file handle to write the string to. Defaults to stdout.
A file handle to write the string to . Defaults to stdout .
stdout