Skip to content

Commit 8847b8c

Browse files
ligurioTotktonada
authored andcommitted
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
1 parent 39d2f4a commit 8847b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tarantool/response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ def __str__(self):
263263
'code': self.strerror[0],
264264
'reason': self.return_message
265265
}
266-
}, sort_keys = True, indent = 4)
266+
}, sort_keys = True, indent = 4, separators=(', ', ': '))
267267
output = []
268268
for tpl in self._data or ():
269269
output.extend(("- ", repr(tpl), "\n"))

0 commit comments

Comments
 (0)