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 | f21d5226c70e7ade888f872afe7924db8b270cd6 (patch) | |
tree | 655f4e028bf274efecfb0cde4f9cd88051252636 /lib/python | |
parent | 93f3894aa76f7613f2ecd6c3895afb808159e974 (diff) |
sectracker.xpickle: open file in binary mode
Diffstat (limited to 'lib/python')
-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: |