Because of course py3 uses an incompatible pickle format by default.

This commit is contained in:
Jim Miller 2018-07-28 23:06:35 -05:00
parent 0783a74b59
commit 2d2805f1b8

View file

@ -275,7 +275,7 @@ def main(argv=None,
if options.save_cache:
with open('global_cache','wb') as jout:
pickle.dump(options.pagecache,jout)
pickle.dump(options.pagecache,jout,protocol=2)
options.cookiejar.save('global_cookies')
# make rest a function and loop on it.