summaryrefslogtreecommitdiff
path: root/src/engine/SCons/Tool/msvs.py
diff options
context:
space:
mode:
authorDaniel Holth <dholth@fastmail.fm>2016-06-20 19:40:16 -0400
committerDaniel Holth <dholth@fastmail.fm>2016-06-20 19:40:16 -0400
commit9de5b4d62b9e7cf0c1703898b492403838979041 (patch)
tree38356bfb94c4d674f6f234a1cf6b652ff0c0f3ea /src/engine/SCons/Tool/msvs.py
parent3cb13d1d95dbb622f9629b129a999fe35480d260 (diff)
downloadscons-9de5b4d62b9e7cf0c1703898b492403838979041.tar.gz
centralize the preferred pickle protocol; use highest protocol.
Diffstat (limited to 'src/engine/SCons/Tool/msvs.py')
-rw-r--r--src/engine/SCons/Tool/msvs.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/engine/SCons/Tool/msvs.py b/src/engine/SCons/Tool/msvs.py
index 6df4928f..02b9a348 100644
--- a/src/engine/SCons/Tool/msvs.py
+++ b/src/engine/SCons/Tool/msvs.py
@@ -54,6 +54,7 @@ import SCons.Warnings
from .MSCommon import msvc_exists, msvc_setup_env_once
from SCons.Defaults import processDefines
+from SCons.compat import PICKLE_PROTOCOL
##############################################################################
# Below here are the classes and functions for generation of
@@ -641,10 +642,10 @@ class _GenerateV6DSP(_DSPGenerator):
if self.nokeep == 0:
# now we pickle some data and add it to the file -- MSDEV will ignore it.
- pdata = pickle.dumps(self.configs,1)
+ pdata = pickle.dumps(self.configs,PICKLE_PROTOCOL)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '\n')
- pdata = pickle.dumps(self.sources,1)
+ pdata = pickle.dumps(self.sources,PICKLE_PROTOCOL)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '\n')
@@ -913,10 +914,10 @@ class _GenerateV7DSP(_DSPGenerator, _GenerateV7User):
if self.nokeep == 0:
# now we pickle some data and add it to the file -- MSDEV will ignore it.
- pdata = pickle.dumps(self.configs,1)
+ pdata = pickle.dumps(self.configs,PICKLE_PROTOCOL)
pdata = base64.encodestring(pdata)
self.file.write('<!-- SCons Data:\n' + pdata + '\n')
- pdata = pickle.dumps(self.sources,1)
+ pdata = pickle.dumps(self.sources,PICKLE_PROTOCOL)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '-->\n')
@@ -1232,10 +1233,10 @@ class _GenerateV10DSP(_DSPGenerator, _GenerateV10User):
if self.nokeep == 0:
# now we pickle some data and add it to the file -- MSDEV will ignore it.
- pdata = pickle.dumps(self.configs,1)
+ pdata = pickle.dumps(self.configs,PICKLE_PROTOCOL)
pdata = base64.encodestring(pdata)
self.file.write('<!-- SCons Data:\n' + pdata + '\n')
- pdata = pickle.dumps(self.sources,1)
+ pdata = pickle.dumps(self.sources,PICKLE_PROTOCOL)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '-->\n')
@@ -1606,7 +1607,7 @@ class _GenerateV7DSW(_DSWGenerator):
'\tEndGlobalSection\n')
self.file.write('EndGlobal\n')
if self.nokeep == 0:
- pdata = pickle.dumps(self.configs,1)
+ pdata = pickle.dumps(self.configs,PICKLE_PROTOCOL)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '\n')