Skip to content

Commit

Permalink
pickle use highest protocl instead of 5
Browse files Browse the repository at this point in the history
Signed-off-by: Praneeth Bedapudi <[email protected]>
  • Loading branch information
bedapudi6788 committed Dec 4, 2023
1 parent fb029e5 commit fa32924
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion clients/python/fdclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def infer(self, data, unique_id=None, is_async=False):
unique_id = str(uuid.uuid4()) if not unique_id else unique_id

if self.input_type == "pickle":
data = pickle.dumps(data, protocol=5)
data = pickle.dumps(data, protocol=pickle.HIGHEST_PROTOCOL)
elif self.input_type == "msgpack":
data = msgpack.packb(data, use_bin_type=True)
else:
Expand Down
2 changes: 1 addition & 1 deletion clients/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
EMAIL = "[email protected]"
AUTHOR = "BEDAPUDI PRANEETH"
REQUIRES_PYTHON = ">=3.6.0"
VERSION = "3.0.0rc5"
VERSION = "3.0.0rc6"

# What packages are required for this module to be executed?
REQUIRED = ["zstandard", "requests", "msgpack"]
Expand Down

0 comments on commit fa32924

Please sign in to comment.