Skip to content

Commit

Permalink
fifth 2.6 fix, part of #126
Browse files Browse the repository at this point in the history
  • Loading branch information
robweber committed Dec 19, 2017
1 parent f34ba98 commit 6901407
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion resources/lib/dropbox/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -511,5 +511,9 @@ def encode(o):
else:
return str(o).encode('utf-8')

utf8_params = {encode(k): encode(v) for k, v in six.iteritems(params)}
#fix for python 2.6
utf8_params = {}
for k,v in six.iteritems(params):
utf8_params[encode(k)] = encode(v)

return url_encode(utf8_params)

0 comments on commit 6901407

Please sign in to comment.