using pickle HIGHEST_PROTOCOL just in case

This commit is contained in:
Miroslav Stampar
2012-03-13 09:35:37 +00:00
parent e6c610abab
commit e827f41cdb
2 changed files with 3 additions and 3 deletions

View File

@@ -33,7 +33,7 @@ def base64encode(value):
return value.encode("base64")[:-1].replace("\n", "")
def base64pickle(value):
return base64encode(pickle.dumps(value))
return base64encode(pickle.dumps(value, pickle.HIGHEST_PROTOCOL))
def base64unpickle(value):
return pickle.loads(base64decode(value))