Merge pull request #96 from robweber/dropbox_2.6

Koying's patch for #94
This commit is contained in:
Rob 2017-01-23 11:44:02 -06:00 committed by GitHub
commit 17aeb98bf2

View File

@ -412,5 +412,8 @@ def params_to_urlencoded(params):
return o.encode('utf8') return o.encode('utf8')
else: else:
return str(o) return str(o)
utf8_params = {encode(k): encode(v) for k, v in params.iteritems()} utf8_params={}
for k, v in params.iteritems():
utf8_params[encode(k)]= encode(v)
return urllib.urlencode(utf8_params) return urllib.urlencode(utf8_params)