Joel Uckelman added the comment:

Here's a patch, complete with tests.

If the value is all CFWS, then get_cfws(value)[1], which is what's left after 
the CFWS is extracted, is the empty string---which is why value[0] throws in 
this case.

----------
keywords: +patch
Added file: http://bugs.python.org/file46562/29412.patch

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29412>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to