Merge lp:~gocept/landscape-client/py3-gpg into lp:~landscape/landscape-client/trunk

Proposed by Steffen Allner
Status: Merged
Approved by: Free Ekanayaka
Approved revision: 960
Merged at revision: 950
Proposed branch: lp:~gocept/landscape-client/py3-gpg
Merge into: lp:~landscape/landscape-client/trunk
Prerequisite: lp:~gocept/landscape-client/python3
Diff against target: 13 lines (+3/-0)
1 file modified
landscape/lib/gpg.py (+3/-0)
To merge this branch: bzr merge lp:~gocept/landscape-client/py3-gpg
Reviewer Review Type Date Requested Status
Daniel Havlik (community) Approve
🤖 Landscape Builder test results Approve
Geoff Teale (community) Approve
Alberto Donato (community) Approve
Review via email: mp+319414@code.launchpad.net

Commit message

We are on the journey to get the Bytes / String story solved for Python 2/3 compatibility.

This MP considers just a small part of code in the landscape.lib.gpg module which renders the error message.

Description of the change

We are on the journey to get the Bytes / String story solved for Python 2/3 compatibility.

This MP considers just a small part of code in the landscape.lib.gpg module which renders the error message.

To post a comment you must log in.
Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

Command: TRIAL_ARGS=-j4 make check
Result: Success
Revno: 959
Branch: lp:~gocept/landscape-client/py3-gpg
Jenkins: https://ci.lscape.net/job/latch-test-precise/896/

review: Approve (test results)
Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

Command: TRIAL_ARGS=-j4 make check
Result: Success
Revno: 959
Branch: lp:~gocept/landscape-client/py3-gpg
Jenkins: https://ci.lscape.net/job/latch-test-xenial/1460/

review: Approve (test results)
Revision history for this message
Alberto Donato (ack) wrote :

+1

Revision history for this message
Alberto Donato (ack) :
review: Approve
Revision history for this message
Geoff Teale (tealeg) wrote :

+1 with a note inline.

review: Approve
lp:~gocept/landscape-client/py3-gpg updated
960. By Steffen Allner

Improve documentation and coding style.

Revision history for this message
Steffen Allner (sallner) wrote :

I improved the documentation and coding style.

Revision history for this message
🤖 Landscape Builder (landscape-builder) :
review: Abstain (executing tests)
Revision history for this message
🤖 Landscape Builder (landscape-builder) wrote :

Command: TRIAL_ARGS=-j4 make check
Result: Success
Revno: 960
Branch: lp:~gocept/landscape-client/py3-gpg
Jenkins: https://ci.lscape.net/job/latch-test-xenial/3602/

review: Approve (test results)
Revision history for this message
Daniel Havlik (nilo) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'landscape/lib/gpg.py'
2--- landscape/lib/gpg.py 2017-01-05 09:07:23 +0000
3+++ landscape/lib/gpg.py 2017-03-13 08:57:59 +0000
4@@ -24,6 +24,9 @@
5
6 def check_gpg_exit_code(args):
7 out, err, code = args
8+ # We want a nice error message with Python 3 as well, so decode the
9+ # bytes here.
10+ out, err = out.decode("ascii"), err.decode("ascii")
11 if code != 0:
12 raise InvalidGPGSignature("%s failed (out='%s', err='%s', "
13 "code='%d')" % (gpg, out, err, code))

Subscribers

People subscribed via source and target branches

to all changes: