def get_full_url(info, log_path):
 if (info is not None):
  (protocol, host, path) = info
  prefix = ('%s://%s' % (protocol, host))
 else:
  prefix = ''
  path = log_path
 return (prefix + path)

def get_full_url ( info , log_path ) : if ( info is not None ) : ( protocol , host , path ) = info prefix = ( '%s://%s' % ( protocol , host ) ) else : prefix = '' path = log_path return ( prefix + path )
returns the full url of the requested log path .