summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetr Vorel <petr.vorel@gmail.com>2018-07-26 09:11:14 +0200
committerDaniel Axtens <dja@axtens.net>2018-08-26 19:17:49 +1000
commitea5847ada3ac79908a2b251839e77e1b2f3dc6d2 (patch)
tree2a378666d72d327bcb973783f2a22d2f4e458df3
parent8fe11180a1a59f6e8e5a4441b21a3d9831f0b69d (diff)
downloadpatchwork-ea5847ada3ac79908a2b251839e77e1b2f3dc6d2.tar
patchwork-ea5847ada3ac79908a2b251839e77e1b2f3dc6d2.tar.gz
pwclient: Fix pwclient am output formatting
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>
-rwxr-xr-xpatchwork/bin/pwclient4
1 files changed, 2 insertions, 2 deletions
diff --git a/patchwork/bin/pwclient b/patchwork/bin/pwclient
index 79137b0..2020a8c 100755
--- a/patchwork/bin/pwclient
+++ b/patchwork/bin/pwclient
@@ -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)