From d8f891005dc3edc527e62fd06fa92feab94db61d Mon Sep 17 00:00:00 2001 From: Daniel Holth Date: Tue, 21 Jun 2016 12:24:43 +0000 Subject: use pickle.HIGHEST_PROTOCOL instead of -1 --- src/engine/SCons/compat/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/engine/SCons/compat/__init__.py b/src/engine/SCons/compat/__init__.py index 9a911f7..c6c7214 100644 --- a/src/engine/SCons/compat/__init__.py +++ b/src/engine/SCons/compat/__init__.py @@ -91,7 +91,8 @@ rename_module('pickle', 'cPickle') # Default pickle protocol. Higher protocols are more efficient/featureful # but incompatible with older Python versions. On Python 2.7 this is 2. # Negative numbers choose the highest available protocol. -PICKLE_PROTOCOL=-1 +import pickle +PICKLE_PROTOCOL=pickle.HIGHEST_PROTOCOL # TODO: FIXME # In 3.x, 'profile' automatically loads the fast version if available. -- cgit v0.12