summaryrefslogtreecommitdiffstats
path: root/src/engine/SCons
diff options
context:
space:
mode:
authorDaniel Holth <dholth@fastmail.fm>2016-06-21 12:24:43 (GMT)
committerDaniel Holth <dholth@fastmail.fm>2016-06-21 12:24:43 (GMT)
commitd8f891005dc3edc527e62fd06fa92feab94db61d (patch)
tree7b8df0e27a0bfb6dc6c438adc8f82a91bfd7d812 /src/engine/SCons
parentb10a8e66e04ed191b27c8d7d33040deabe255714 (diff)
downloadSCons-d8f891005dc3edc527e62fd06fa92feab94db61d.zip
SCons-d8f891005dc3edc527e62fd06fa92feab94db61d.tar.gz
SCons-d8f891005dc3edc527e62fd06fa92feab94db61d.tar.bz2
use pickle.HIGHEST_PROTOCOL instead of -1
Diffstat (limited to 'src/engine/SCons')
-rw-r--r--src/engine/SCons/compat/__init__.py3
1 files changed, 2 insertions, 1 deletions
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.