def GetFullURL(server_name, server_port, relative_url):
 if (str(server_port) != '80'):
  netloc = ('%s:%s' % (server_name, server_port))
 else:
  netloc = server_name
 return ('http://%s%s' % (netloc, relative_url))

def GetFullURL ( server_name , server_port , relative_url ) : if ( str ( server_port ) != '80' ) : netloc = ( '%s:%s' % ( server_name , server_port ) ) else : netloc = server_name return ( 'http://%s%s' % ( netloc , relative_url ) )
returns the full .