mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-14 00:21:08 +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:
|
||||
# Create tempfile and remember mtime
|
||||
report_file = tempfile.NamedTemporaryFile(prefix='requestsync_')
|
||||
report_file.write(report)
|
||||
report_file.write(report.encode('utf-8'))
|
||||
report_file.flush()
|
||||
mtime_before = os.stat(report_file.name).st_mtime
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user