[python-bugzilla] [PATCH] Add flags_requestee as an outputformat specifier
Lon Hohberger
lhh at redhat.com
Fri Jan 17 16:53:58 UTC 2014
On 01/17/2014 11:24 AM, Cole Robinson wrote:
> Personally I find the KeyError pattern makes things less readable.
>
> I think you can combine both these formats into the above block, something like:
>
> elif fieldname == "flags" or fieldname == "flags_requestee":
> requestee = f.get('requestee', "")
> if fieldname == "flags":
> requestee = ""
> ...
>
> And then just unconditionally add in 'requestee'
Yep, that works; I'll resubmit.
-- Lon
More information about the python-bugzilla
mailing list