It turns out http.client on Python 3 sometimes uses readinto() in the
implementation of read(). Unfortunately, Python 2 doesn't have a
readinto() in httplib's client, so we have to support both codepaths.
Subclassing is bad, folks.
( )
indygreg |
hg-reviewers |
It turns out http.client on Python 3 sometimes uses readinto() in the
implementation of read(). Unfortunately, Python 2 doesn't have a
readinto() in httplib's client, so we have to support both codepaths.
Subclassing is bad, folks.
Lint Skipped |
Unit Tests Skipped |
This is horrible. But this is the world we live in. Everything about the HTTP code terrifies me. That includes both our code and CPython's.