1
Description: open our crash report for writing in binary mode
2
Recent versions of apport are more finicky about ensuring the crash report
3
handle supports writing binary output, so explicitly open the file in
5
Author: Steve Langasek <steve.langasek@canonical.com>
6
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1054984
8
=== modified file 'aptdaemon/crash.py'
9
--- a/aptdaemon/crash.py 2012-02-03 06:37:42 +0000
10
+++ b/aptdaemon/crash.py 2012-09-26 17:19:45 +0000
13
report_path = apport.fileutils.make_report_path(report, uid)
14
if not os.path.exists(report_path):
15
- report.write(open(report_path, 'w'))
16
+ report.write(open(report_path, 'wb'))
18
if __name__ == "__main__":