Partially apply Python 3 libmodernize.fixes.fix_dict_six.
Refer to #256
This commit is contained in:
parent
7ccd60584a
commit
5e3013d2c2
3 changed files with 4 additions and 4 deletions
|
@ -245,7 +245,7 @@ class Client(object):
|
|||
def do_api_query(self, orig_request, url, method="POST", longpolling = False):
|
||||
request = {}
|
||||
|
||||
for (key, val) in orig_request.iteritems():
|
||||
for (key, val) in six.iteritems(orig_request):
|
||||
if not (isinstance(val, str) or isinstance(val, six.text_type)):
|
||||
request[key] = simplejson.dumps(val)
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue