X-Git-Url: http://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Fbin%2Fpwclient;fp=apps%2Fpatchwork%2Fbin%2Fpwclient;h=2a809814a4848272b2311d6d4eaa2e40db4d46fa;hb=ee50829bb8922628ae01df75403d8de088c01b9c;hp=2afccdf604c4bed6a8c95e43224e32861a708825;hpb=4f152d818977fb6a9f1ca1b38f88253cf61a8c73;p=patchwork diff --git a/apps/patchwork/bin/pwclient b/apps/patchwork/bin/pwclient index 2afccdf..2a80981 100755 --- a/apps/patchwork/bin/pwclient +++ b/apps/patchwork/bin/pwclient @@ -142,7 +142,14 @@ def list_patches(patches, format_str=None): def patch_field(matchobj): fieldname = matchobj.group(1) - return str(patch[fieldname]) + + if fieldname == "_msgid_": + # naive way to strip < and > from message-id + val = string.strip(str(patch["msgid"]), "<>") + else: + val = str(patch[fieldname]) + + return val for patch in patches: print(format_field_re.sub(patch_field, format_str))