mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-05-07 15:01:34 +00:00
grep-merges: Use unicode string format for pretty output to deal with
non ascii encoding.
This commit is contained in:
parent
f232d121d2
commit
e56c0fce43
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -7,6 +7,10 @@ ubuntu-dev-tools (0.158) UNRELEASED; urgency=medium
|
|||||||
[ Colin Watson ]
|
[ Colin Watson ]
|
||||||
* pbuilder-dist, ubuntu-build: Add s390x.
|
* pbuilder-dist, ubuntu-build: Add s390x.
|
||||||
|
|
||||||
|
[ James Page ]
|
||||||
|
* grep-merges: Use unicode string format for pretty output to deal with
|
||||||
|
non ascii encoding.
|
||||||
|
|
||||||
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 13 May 2016 09:04:03 +0200
|
-- Martin Pitt <martin.pitt@ubuntu.com> Fri, 13 May 2016 09:04:03 +0200
|
||||||
|
|
||||||
ubuntu-dev-tools (0.157) unstable; urgency=medium
|
ubuntu-dev-tools (0.157) unstable; urgency=medium
|
||||||
|
@ -65,7 +65,7 @@ def main():
|
|||||||
author = merge['user']
|
author = merge['user']
|
||||||
if merge.get('uploader'):
|
if merge.get('uploader'):
|
||||||
uploader = '(%s)' % merge['uploader']
|
uploader = '(%s)' % merge['uploader']
|
||||||
pretty_uploader = ' '.join((author, uploader)).strip()
|
pretty_uploader = u'{} {}'.format(author, uploader)
|
||||||
if (match is None or
|
if (match is None or
|
||||||
match in package or match in author or match in uploader):
|
match in package or match in author or match in uploader):
|
||||||
print '%s\t%s' % (package.encode("utf-8"), pretty_uploader.encode("utf-8"))
|
print '%s\t%s' % (package.encode("utf-8"), pretty_uploader.encode("utf-8"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user