summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Reporting/Transport/LocalFilesystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Bcfg2/Reporting/Transport/LocalFilesystem.py')
-rw-r--r--src/lib/Bcfg2/Reporting/Transport/LocalFilesystem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Bcfg2/Reporting/Transport/LocalFilesystem.py b/src/lib/Bcfg2/Reporting/Transport/LocalFilesystem.py
index 0a0f032e5..c7d5c512a 100644
--- a/src/lib/Bcfg2/Reporting/Transport/LocalFilesystem.py
+++ b/src/lib/Bcfg2/Reporting/Transport/LocalFilesystem.py
@@ -87,7 +87,7 @@ class LocalFilesystem(TransportBase):
# using a tmpfile to hopefully avoid the file monitor from grabbing too
# soon
- saved = open(tmp_file, 'w')
+ saved = open(tmp_file, 'wb')
try:
saved.write(payload)
except IOError:
@@ -123,7 +123,7 @@ class LocalFilesystem(TransportBase):
self.debug_log("Handling event %s" % event.filename)
payload = os.path.join(self.work_path, event.filename)
try:
- payloadfd = open(payload, "r")
+ payloadfd = open(payload, "rb")
interaction = cPickle.load(payloadfd)
payloadfd.close()
os.unlink(payload)