mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-31 18:41:36 +00:00
ubuntutools/requestsync/common.py: write the report into the tempfile encoded as utf-8
This commit is contained in:
parent
acd67abdb5
commit
0d0b21b353
@ -101,7 +101,7 @@ def edit_report(subject, body, changes_required = False):
|
|||||||
if not editing_finished:
|
if not editing_finished:
|
||||||
# Create tempfile and remember mtime
|
# Create tempfile and remember mtime
|
||||||
report_file = tempfile.NamedTemporaryFile(prefix='requestsync_')
|
report_file = tempfile.NamedTemporaryFile(prefix='requestsync_')
|
||||||
report_file.write(report)
|
report_file.write(report.encode('utf-8'))
|
||||||
report_file.flush()
|
report_file.flush()
|
||||||
mtime_before = os.stat(report_file.name).st_mtime
|
mtime_before = os.stat(report_file.name).st_mtime
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user