Forced use of pickle.HIGHEST_PROTOCOL to save space
@@ -73,9 +73,10 @@ class CreateSnapshot(BaseSolver):
# create file
file = self.snap_name()
with open(file, 'wb') as f:
- pickle.dump(self.data, f)
+ pickle.dump(self.data, f, protocol=pickle.HIGHEST_PROTOCOL)
# update symlink
+ if settings['symlink']:
try:
os.unlink(self.filename)
except FileNotFoundError:
