api/zulip/__init__.py: Make compatible with newer mypy.

This commit is contained in:
Eklavya Sharma 2016-06-27 20:56:13 +05:30
parent f20699b615
commit a9fa78fc4a
1 changed files with 3 additions and 3 deletions

View File

@ -247,10 +247,10 @@ class Client(object):
request = {}
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:
if isinstance(val, str) or isinstance(val, six.text_type):
request[key] = val
else:
request[key] = simplejson.dumps(val)
query_state = {
'had_error_retry': False,