Commit 022c49b0 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

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

parent 0bab840e
......@@ -390,7 +390,7 @@ class Settings(object):
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),
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment