Quantcast
Channel: feed2exec:0468b0f013c169566ebd398aeeb6b63f08dcccc0 commits
Viewing all articles
Browse latest Browse all 40

return bytes properly in fetch

$
0
0
this fixes double-encoding issues detected in the previous test. our documentation was *saying* we were returning bytes from fetch() but, actually, we were returning a string. it *seems* that feedparser expects bytes because it returns us an decoded string which, when re-encoded (e.g. in email.make_message), is double-encoded when it was originally a string. when we pass bytes, the output is correct.

Viewing all articles
Browse latest Browse all 40

Trending Articles