[issue27931] Email parse IndexError <""@wiarcom.com>
Xiang Zhang
report at bugs.python.org
Fri Sep 2 03:45:15 EDT 2016
Xiang Zhang added the comment:
Looking at the spec this is a valid angle addr. Not only et_angle_addr('<""@wiarcom.com> SIZE=28113')[0].addr_spec but also et_angle_addr('<""@wiarcom.com> SIZE=28113')[0].local_part fails for the same reason.
The problem exists in get_bare_quoted_string. When encounter bare '""', it returns a empty BareQuoteString. I write issue27931.patch to fix this.
----------
keywords: +patch
nosy: +xiang.zhang
Added file: http://bugs.python.org/file44340/issue27931.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue27931>
_______________________________________
More information about the Python-bugs-list
mailing list