summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2020-08-05 20:55:31 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2020-08-05 21:23:25 +0200
commit6d3860c9cb11d21439c2a7c145a87b1393224829 (patch)
tree84d80cb8e5d787835be67b718c2786d2ff618935 /lib
parent09d5622094a47924822380460d076daa70939df3 (diff)
sectracker.xpickle: open file in binary mode
Diffstat (limited to 'lib')
-rw-r--r--lib/python/sectracker/xpickle.py2
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:

© 2014-2024 Faster IT GmbH | imprint | privacy policy