]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsemail: Flatten 'try_decode' method
authorStephen Finucane <stephen.finucane@intel.com>
Sat, 5 Mar 2016 17:07:36 +0000 (17:07 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 14 Apr 2016 16:29:09 +0000 (17:29 +0100)
commiteda3dd7d1968c519470cef0c9115b95476160f03
treea5f3525252d59e1a95ffe2d9e9ec7b06ada18c9c
parent96d963c33c3b2008e9d940ce0021c4e9e8977ec2
parsemail: Flatten 'try_decode' method

This function is small, is only called once and isn't unit tested. Save
a few lines and some cognitive effort by folding it in where it's used.

Signed-off-by: Stephen Finucane <stephen.finucane@intel.com>
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/bin/parsemail.py