Commit 748c4e0f authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Implemnt an urlencode that uses quote instead.

parent b3fe0ece
......@@ -7,6 +7,7 @@ import time
import htmlentitydefs
import re
import locale
from urllib import quote
def parse_datetime(string):
......@@ -96,3 +97,7 @@ def list_to_csv(item_list):
if item_list:
return ','.join([str(i) for i in item_list])
def urlencode_noplus(query):
return '&'.join(['%s=%s' % (quote(str(k)), quote(str(v))) \
for k, v in query.iteritems()])
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment