def _quote_query(query):
return "<STR_LIT:&>".join("<STR_LIT>" % (<EOL>k, urllib_quote(<EOL>unicode(query[k]).encode('<STR_LIT:utf-8>'), safe='<STR_LIT>'))<EOL>for k in sorted(query))<EOL>
Turn a dictionary into a query string in a URL, with keys
    in alphabetical order.