This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients jelie, pitrou
Date 2010-11-02.23:08:37
SpamBayes Score 2.3256737e-06
Marked as misclassified No
Message-id <1288739314.3541.17.camel@localhost.localdomain>
In-reply-to <1288739110.07.0.890731125422.issue10281@psf.upfronthosting.co.za>
Content
> OK, thanks.
> By the way, why is the token stripped?
>   token = token[len(h):].lstrip(" ")
> 
> "X-Header:   test  \r\n" in an header is kept in the overview as-is.
> I do not see why "  test  " should not be the value returned.

It's a simple way of handling "Xref: foo" and returning "foo" rather
than " foo". If spaces are supposed to be significant I can just strip
the first one, though.

> Also, with:
>   token = token or None
> 
> "X-Header: \r\n" becomes None if I understand how the source code
> works...  Yet, it is a real '', not None.

Er, so you're disagreeing with your previous message? Or am I missing
something? :)
History
Date User Action Args
2010-11-02 23:08:41pitrousetrecipients: + pitrou, jelie
2010-11-02 23:08:37pitroulinkissue10281 messages
2010-11-02 23:08:37pitroucreate