parameters: (route, params)
return_statement: return out
docstring: Takes route and query params, and produce encoded url for that asset.
docstring_summary: Takes route and query params, and produce encoded url for that asset.
docstring_tokens: Takes route and query params and produce encoded url for that asset .
function: def Url(route, params):
    """Takes route and query params, and produce encoded url for that asset."""
    out = route
    if params:
      # sorting ensures a unique filename for each query
      sorted_params = sorted(six.iteritems(params))
      out += '?' + urllib.urlencode(sorted_params)
    return out
function_tokens: def Url ( route , params ) : out = route if params : # sorting ensures a unique filename for each query sorted_params = sorted ( six . iteritems ( params ) ) out += '?' + urllib . urlencode ( sorted_params ) return out