]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
pwclient: Fix pwclient am output formatting
authorPetr Vorel <petr.vorel@gmail.com>
Thu, 26 Jul 2018 07:11:14 +0000 (09:11 +0200)
committerStephen Finucane <stephen@that.guru>
Sun, 14 Oct 2018 13:41:35 +0000 (14:41 +0100)
repr() print unicode prefix for string:
$ pwclient git-am N
Applying patch #N using u'git am'

Remove it:
$ pwclient git-am N
Applying patch #918868 using "git am"

git mixes single and double quotes, use double quotes which are more
frequently used.

Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
Signed-off-by: Daniel Axtens <dja@axtens.net>
(cherry picked from commit ea5847ada3ac79908a2b251839e77e1b2f3dc6d2)

patchwork/bin/pwclient

index 79137b0d0c39c6f40ced6978cd217e4ff23513c0..2020a8c0de0532336afab778fbe7fbb935b0e98a 100755 (executable)
@@ -327,8 +327,8 @@ def action_apply(rpc, patch_id, apply_cmd=None):
         print('Applying patch #%d to current directory' % patch_id)
         apply_cmd = ['patch', '-p1']
     else:
-        print('Applying patch #%d using %s' %
-              (patch_id, repr(' '.join(apply_cmd))))
+        print('Applying patch #%d using "%s"' %
+              (patch_id, ' '.join(apply_cmd)))
 
     print('Description: %s' % patch['name'])
     s = rpc.patch_get_mbox(patch_id)