[issue10281] Exception raised when an NNTP overview field is absent
Julien ÉLIE
report at bugs.python.org
Wed Nov 3 18:55:55 CET 2010
Julien ÉLIE <julien at trigofacile.com> added the comment:
> Er, so you're disagreeing with your previous message?
> Or am I missing something? :)
I was saying that if an empty string is returned, then it means that the header exists and is empty. An example was "User-Agent: \r\n".
And my remark "I believe None is better." concerned your initial question "Should the field be totally absent [...]" regarding how to deal with a header that does not exist.
Therefore, "User-Agent: \r\n" becomes a real '', not None. None is only when the User-Agent: header field is absent from the headers.
> Here is a patch trying to better handle whitespace.
> Would it be ok for you?
Yes Antoine, thanks!
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10281>
_______________________________________
More information about the Python-bugs-list
mailing list