testing/unexpected_passes_common/result_output.py
def _LinkifyString(s):
  """Turns instances of links into anchor tags.

  Args:
    s: The string to linkify.

  Returns:
    A copy of |s| with instances of links turned into anchor tags pointing to
    the link.
  """
  for component in s.split():
    if component.startswith('http'):
      component = component.strip(',.!')
      s = s.replace(component, '<a href="%s">%s</a>' % (component, component))
  return s
Turns instances of links into anchor tags.

  Args:
    s: The string to linkify.

  Returns:
    A copy of |s| with instances of links turned into anchor tags pointing to
    the link.
  
Turns instances of links into anchor tags.
Turns instances of links into anchor tags .
def _LinkifyString(s):
  for component in s.split():
    if component.startswith('http'):
      component = component.strip(',.!')
      s = s.replace(component, '<a href="%s">%s</a>' % (component, component))
  return s
def _LinkifyString ( s ) : for component in s . split ( ) : if component . startswith ( 'http' ) : component = component . strip ( ',.!' ) s = s . replace ( component , '<a href="%s">%s</a>' % ( component , component ) ) return s
Turns instances of links into anchor tags.
Turns instances of links into anchor tags .
"""Turns instances of links into anchor tags.

  Args:
    s: The string to linkify.

  Returns:
    A copy of |s| with instances of links turned into anchor tags pointing to
    the link.
  """
A copy of |s| with instances of links turned into anchor tags pointing to
the link.
A copy of |s| with instances of links turned into anchor tags pointing to the link .
s
The string to linkify.
The string to linkify .