We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b335adf commit 6efb9deCopy full SHA for 6efb9de
tarantool/request.py
@@ -4,6 +4,7 @@
4
Request types definitions
5
'''
6
7
+import sys
8
import collections
9
import msgpack
10
import hashlib
@@ -101,7 +102,7 @@ def __init__(self, conn):
101
102
# connection encoding is not None. If encoding is None,
103
# pack bytes as mp_str and unpack mp_str to bytes. mp_bin is
104
# unsupported in this mode.
- if conn.encoding is None:
105
+ if conn.encoding is None or sys.version_info.major == 2:
106
packer_kwargs['use_bin_type'] = False
107
else:
108
packer_kwargs['use_bin_type'] = True
0 commit comments