]> git.ipfire.org Git - thirdparty/patchwork.git/commit
parsemail: Restructure 'parse_content'
authorStephen Finucane <stephen.finucane@intel.com>
Sat, 5 Mar 2016 22:50:51 +0000 (22:50 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 14 Apr 2016 16:29:11 +0000 (17:29 +0100)
commiteed54eb0d1d92174031455faf9ff17cecfec97a8
tree0b2063bd94bcbdb6b4a645efa7cf326777481089
parenteda3dd7d1968c519470cef0c9115b95476160f03
parsemail: Restructure 'parse_content'

The 'parse_content' function is designed, as the title suggests, to
parse the content of an email. It should not be used to build objects
or similar. Move this functionality out of the function, updating the
unit tests as necessary.

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