File tree 1 file changed +1
-4
lines changed
1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -81,9 +81,6 @@ def __init__(self, conn):
81
81
# The option controls whether to pack binary (non-unicode)
82
82
# string values as mp_bin or as mp_str.
83
83
#
84
- # The default behaviour of the Python 2 connector is to pack
85
- # both bytes and Unicode strings as mp_str.
86
- #
87
84
# The default behaviour of the Python 3 connector (since
88
85
# default encoding is "utf-8") is to pack bytes as mp_bin
89
86
# and Unicode strings as mp_str. encoding=None mode must
@@ -113,7 +110,7 @@ def __init__(self, conn):
113
110
# just always set it for all msgpack versions to get rid
114
111
# of the warning on msgpack-0.5.0 and to keep our
115
112
# behaviour on msgpack-1.0.0.
116
- if conn .encoding is None or sys . version_info . major == 2 :
113
+ if conn .encoding is None :
117
114
packer_kwargs ['use_bin_type' ] = False
118
115
else :
119
116
packer_kwargs ['use_bin_type' ] = True
You can’t perform that action at this time.
0 commit comments