mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
submittodebian: use file context manager
This commit is contained in:
parent
982ebe6a46
commit
17cce2602c
@ -239,9 +239,8 @@ def main():
|
|||||||
|
|
||||||
tmpdir = mkdtemp()
|
tmpdir = mkdtemp()
|
||||||
body = os.path.join(tmpdir, 'bug_body')
|
body = os.path.join(tmpdir, 'bug_body')
|
||||||
fp = open(body, 'w')
|
with open(body, 'w', encoding='utf-8') as f:
|
||||||
fp.write(bug_body.encode('utf-8'))
|
f.write(bug_body.encode('utf-8'))
|
||||||
fp.close()
|
|
||||||
|
|
||||||
restore_maintainer('debian')
|
restore_maintainer('debian')
|
||||||
build_source_package()
|
build_source_package()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user