diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-05 20:55:31 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2020-08-05 21:23:25 +0200 |
commit | e9733ca163903b56b06ab15b9ffda9c939f19ca2 (patch) | |
tree | 2f1462161110a76dfd22daa961e45a3a464a9b01 /lib | |
parent | 11e066b12768c789dbfd876447fbf52a322f7b41 (diff) |
sectracker.xpickle: open file in binary mode
Diffstat (limited to 'lib')
-rw-r--r-- | lib/python/sectracker/xpickle.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/sectracker/xpickle.py b/lib/python/sectracker/xpickle.py index 32657f15e3..c657958790 100644 --- a/lib/python/sectracker/xpickle.py +++ b/lib/python/sectracker/xpickle.py @@ -42,7 +42,7 @@ def replacefile(path, action): replacing it. The return value is the value returned by the action.""" t_fd, t_name = _tempfile.mkstemp(suffix='.tmp', dir=_os.path.dirname(path)) try: - t = _os.fdopen(t_fd, "w") + t = _os.fdopen(t_fd, "wb") try: result = action(t_name, t) finally: |