__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import base64
+import cPickle
import hashlib
import ntpath
import os
-import pickle
import re
import sys
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 = cPickle.dumps(self.configs,1)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '\n')
- pdata = pickle.dumps(self.sources,1)
+ pdata = cPickle.dumps(self.sources,1)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '\n')
# OK, we've found our little pickled cache of data.
try:
datas = base64.decodestring(datas)
- data = pickle.loads(datas)
+ data = cPickle.loads(datas)
except KeyboardInterrupt:
raise
except:
# it has a "# " in front of it, so we strip that.
try:
datas = base64.decodestring(datas)
- data = pickle.loads(datas)
+ data = cPickle.loads(datas)
except KeyboardInterrupt:
raise
except:
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 = cPickle.dumps(self.configs,1)
pdata = base64.encodestring(pdata)
self.file.write('<!-- SCons Data:\n' + pdata + '\n')
- pdata = pickle.dumps(self.sources,1)
+ pdata = cPickle.dumps(self.sources,1)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '-->\n')
# OK, we've found our little pickled cache of data.
try:
datas = base64.decodestring(datas)
- data = pickle.loads(datas)
+ data = cPickle.loads(datas)
except KeyboardInterrupt:
raise
except:
# OK, we've found our little pickled cache of data.
try:
datas = base64.decodestring(datas)
- data = pickle.loads(datas)
+ data = cPickle.loads(datas)
except KeyboardInterrupt:
raise
except:
# OK, we've found our little pickled cache of data.
try:
datas = base64.decodestring(datas)
- data = pickle.loads(datas)
+ data = cPickle.loads(datas)
except KeyboardInterrupt:
raise
except:
'\tEndGlobalSection\n')
self.file.write('EndGlobal\n')
if self.nokeep == 0:
- pdata = pickle.dumps(self.configs,1)
+ pdata = cPickle.dumps(self.configs,1)
pdata = base64.encodestring(pdata)
self.file.write(pdata + '\n')