Skip to content
Snippets Groups Projects
Commit 022c49b0 authored by Paul McCarthy's avatar Paul McCarthy :mountain_bicyclist:
Browse files

Use pickle protocol 2, so pickle files will work across python 2/3

parent 0bab840e
No related branches found
No related tags found
No related merge requests found
......@@ -390,7 +390,7 @@ class Settings(object):
try:
with open(configFile, 'wb') as f:
pickle.dump(config, f)
pickle.dump(config, f, protocol=2)
except (IOError, pickle.PicklingError, EOFError):
log.warning('Unable to save {} configuration file '
'{}'.format(self.__configID, configFile),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment