File tree 2 files changed +2
-26
lines changed
2 files changed +2
-26
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,6 @@ def find_version(*file_paths):
83
83
cmdclass = cmdclass ,
84
84
command_options = command_options ,
85
85
install_requires = [
86
- 'msgpack>=0.4 .0' ,
86
+ 'msgpack>=1.0 .0' ,
87
87
]
88
88
)
Original file line number Diff line number Diff line change @@ -76,31 +76,7 @@ def __init__(self, conn):
76
76
self ._sync = None
77
77
self ._body = ''
78
78
self .response_class = Response
79
-
80
- packer_kwargs = dict ()
81
-
82
- # use_bin_type=True is default since msgpack-1.0.0.
83
- #
84
- # The option controls whether to pack binary (non-unicode)
85
- # string values as mp_bin or as mp_str.
86
- #
87
- # The default behaviour of the connector is to pack both
88
- # bytes and Unicode strings as mp_str.
89
- #
90
- # msgpack-0.5.0 (and only this version) warns when the
91
- # option is unset:
92
- #
93
- # | FutureWarning: use_bin_type option is not specified.
94
- # | Default value of the option will be changed in future
95
- # | version.
96
- #
97
- # The option is supported since msgpack-0.4.0, so we can
98
- # just always set it for all msgpack versions to get rid
99
- # of the warning on msgpack-0.5.0 and to keep our
100
- # behaviour on msgpack-1.0.0.
101
- packer_kwargs ['use_bin_type' ] = False
102
-
103
- self .packer = msgpack .Packer (** packer_kwargs )
79
+ self .packer = msgpack .Packer ()
104
80
105
81
def _dumps (self , src ):
106
82
return self .packer .pack (src )
You can’t perform that action at this time.
0 commit comments