Skip to content

Commit

Permalink
Merge pull request #54 from int3/other-changes
Browse files Browse the repository at this point in the history
Use pickle protocol 2.
  • Loading branch information
Joel Schaerer committed Jun 6, 2011
2 parents 34419c3 + 5d949f4 commit 3c67f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autojump
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def save(path_dict, dic_file):
# Otherwise, fail quietly
if (not os.path.exists(dic_file)) or os.getuid() == os.stat(dic_file)[4]:
temp = NamedTemporaryFile(dir=CONFIG_DIR, delete=False)
pickle.dump(path_dict, temp, -1)
pickle.dump(path_dict, temp, 2)
temp.flush()
os.fsync(temp)
temp.close()
Expand Down

0 comments on commit 3c67f84

Please sign in to comment.