Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
  • Loading branch information
ligurio committed Dec 29, 2020
commit 13b8dfd83be9d87e196bfefc909dbdfc4362192e
2 changes: 1 addition & 1 deletion tarantool/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down