From 13b8dfd83be9d87e196bfefc909dbdfc4362192e Mon Sep 17 00:00:00 2001 From: Sergey Bronnikov Date: Tue, 29 Dec 2020 16:52:14 +0000 Subject: [PATCH] python3: make json.dumps compatible with Python 2 Python 3.4: Changed in version 3.4: Use (',', ': ') as default if indent is not None. This behaviour broke a test box-py/call.test.py. 1. https://docs.python.org/3/library/json.html#json.dump --- tarantool/response.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tarantool/response.py b/tarantool/response.py index 9eac1b9e..24464fda 100644 --- a/tarantool/response.py +++ b/tarantool/response.py @@ -263,7 +263,7 @@ def __str__(self): 'code': self.strerror[0], 'reason': self.return_message } - }, sort_keys = True, indent = 4) + }, sort_keys = True, indent = 4, separators=(', ', ': ')) output = [] for tpl in self._data or (): output.extend(("- ", repr(tpl), "\n"))