Skip to content

Commit

Permalink
using default pickle protocol version in PickerSerialize
Browse files Browse the repository at this point in the history
  • Loading branch information
eshizhan committed Jul 9, 2023
1 parent 0b482b7 commit 96c7f63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beaker/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ def loads(self, data_string):
return pickle.loads(data_string)

def dumps(self, data):
return pickle.dumps(data, 2)
return pickle.dumps(data, 2) if PY2 else pickle.dumps(data)


class JsonSerializer(object):
Expand Down

0 comments on commit 96c7f63

Please sign in to comment.