diff piecrust/workerpool.py @ 911:f2b75e4be981

internal: Use pickle for caching things on disk. This is just easier and lets us use proper classes instead of converting to/from dictionaries.
author Ludovic Chabant <ludovic@chabant.com>
date Sun, 23 Jul 2017 18:03:21 -0700
parents 313db67cfc35
children 5485a11591ec
line wrap: on
line diff
--- a/piecrust/workerpool.py	Sun Jul 23 18:01:58 2017 -0700
+++ b/piecrust/workerpool.py	Sun Jul 23 18:03:21 2017 -0700
@@ -392,7 +392,7 @@
 
 
 def _pickle_default(obj, buf):
-    pickle.dump(obj, buf)
+    pickle.dump(obj, buf, pickle.HIGHEST_PROTOCOL)
 
 
 def _unpickle_default(buf, bufsize):