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
commite9733ca163903b56b06ab15b9ffda9c939f19ca2 (patch)
tree2f1462161110a76dfd22daa961e45a3a464a9b01 /lib
parent11e066b12768c789dbfd876447fbf52a322f7b41 (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