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 8f899ed commit a52948e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ UNRELEASED
==========

* Dropped support for Python 2.
* Updated default pickle protocol to version 3.

Changes in version 2.1.0
========================

Expand Down
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 a52948e

Please sign in to comment.