Pickle protocol 2.

This commit is contained in:
Simon Forman
2020-04-24 11:58:43 -07:00
parent 78ba1a1851
commit cf5c618376
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -121,7 +121,7 @@ class PickledResource(Resource):
return [pickle.load(f)]
def _to_file(self, f):
pickle.dump(self.thing[0], f)
pickle.dump(self.thing[0], f, protocol=2)
class PersistTask(object):