Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ matrix:
python: 3.7
- os: linux
python: 3.6
env: CLOUDPICKLE_DEFAULT_PROTOCOL=3
- os: linux
python: 3.5
- os: linux
Expand Down
3 changes: 2 additions & 1 deletion cloudpickle/cloudpickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
import logging
import opcode
import operator
import os
import pickle
import struct
import sys
Expand All @@ -60,7 +61,7 @@
# cloudpickle is meant for inter process communication: we expect all
# communicating processes to run the same Python version hence we favor
# communication speed over compatibility:
DEFAULT_PROTOCOL = pickle.HIGHEST_PROTOCOL
DEFAULT_PROTOCOL = int(os.environ.get("CLOUDPICKLE_DEFAULT_PROTOCOL", pickle.HIGHEST_PROTOCOL))


if sys.version_info[0] < 3: # pragma: no branch
Expand Down