mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-09 16:01:28 +00:00
Merge branch 'submittodebian_context_mgr' of git+ssh://git.launchpad.net/~ddstreet/ubuntu-dev-tools/+git/ubuntu-dev-tools
MR: https://code.launchpad.net/~ddstreet/ubuntu-dev-tools/+git/ubuntu-dev-tools/+merge/375291 Signed-off-by: Mattia Rizzolo <mattia@debian.org>
This commit is contained in:
commit
8220accbe8
1
debian/changelog
vendored
1
debian/changelog
vendored
@ -6,6 +6,7 @@ ubuntu-dev-tools (0.175) UNRELEASED; urgency=medium
|
|||||||
|
|
||||||
[ Dan Streetman ]
|
[ Dan Streetman ]
|
||||||
* tests/pylint.conf: use jobs=0 to speed up tests.
|
* tests/pylint.conf: use jobs=0 to speed up tests.
|
||||||
|
* submittodebian: use a context manager while opening a file.
|
||||||
|
|
||||||
-- Mattia Rizzolo <mattia@debian.org> Mon, 28 Oct 2019 14:32:20 +0100
|
-- Mattia Rizzolo <mattia@debian.org> Mon, 28 Oct 2019 14:32:20 +0100
|
||||||
|
|
||||||
|
@ -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