Skip to content

Commit

Permalink
Updated DEFAULT_PROTOCOL to 3.
Browse files Browse the repository at this point in the history
> Protocol version 3 was added in Python 3.0. It has explicit support for bytes objects and cannot be unpickled by Python 2.x. This was the default protocol in Python 3.0–3.7.
  • Loading branch information
carltongibson committed Jun 5, 2020
1 parent 2aca332 commit 40352c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion picklefield/constants.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import unicode_literals

DEFAULT_PROTOCOL = 2
DEFAULT_PROTOCOL = 3

0 comments on commit 40352c1

Please sign in to comment.