original_docstring: 
      return the url with a resolved hostname
      
docstring: return the url with a resolved hostname
docstring_tokens: return the url with a resolved hostname
code: def url(context, url):
      '''
      return the url with a resolved hostname
      '''
      pseudo = re.match('(\S+)://([^/]+)(.*)', url)
      if not pseudo:
          return url
      scheme = pseudo.group(1)
      fqdn = pseudo.group(2)
      path = pseudo.group(3)
      return '{}://{}{}'.format(scheme, hostname(context, fqdn), path)
code_tokens: def url ( context , url ) : pseudo = re . match ( '(\S+)://([^/]+)(.*)' , url ) if not pseudo : return url scheme = pseudo . group ( 1 ) fqdn = pseudo . group ( 2 ) path = pseudo . group ( 3 ) return '{}://{}{}' . format ( scheme , hostname ( context , fqdn ) , path )
short_docstring: return the url with a resolved hostname
short_docstring_tokens: return the url with a resolved hostname
comment: '''
      return the url with a resolved hostname
      '''