[PATCH 4/5] pwclient: Fix string formatting bug
Nate Case
ncase at xes-inc.com
Fri Mar 20 05:59:55 EST 2009
Fix a trivial string formatting bug that would happen when
a filter by author or delegate would return 0 results.
Signed-off-by: Nate Case <ncase at xes-inc.com>
---
Rebased against latest HEAD.
apps/patchwork/bin/pwclient | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient
index e25212a..7793dc7 100755
--- a/apps/patchwork/bin/pwclient
+++ b/apps/patchwork/bin/pwclient
@@ -165,7 +165,7 @@ def action_list(rpc, filter, submitter_str, delegate_str):
if submitter_str != "":
ids = person_ids_by_name(rpc, submitter_str)
if len(ids) == 0:
- sys.stderr.write("Note: Nobody found matching *%s*\n", \
+ sys.stderr.write("Note: Nobody found matching *%s*\n" % \
submitter_str)
else:
for id in ids:
@@ -181,7 +181,7 @@ def action_list(rpc, filter, submitter_str, delegate_str):
if delegate_str != "":
ids = person_ids_by_name(rpc, delegate_str)
if len(ids) == 0:
- sys.stderr.write("Note: Nobody found matching *%s*\n", \
+ sys.stderr.write("Note: Nobody found matching *%s*\n" % \
delegate_str)
else:
for id in ids:
--
1.6.2
More information about the Patchwork
mailing list