Fix HTTP requests on Python 2.5.x.
Review Request #4375 — Created Aug. 2, 2013 and submitted — Latest diff uploaded
Fix HTTP requests on Python 2.5.x. Python 2.5.x doesn't understand that all HTTP 2xx status codes are successful responses and not errors. This causes problems when using Python 2.5 and services like GitHub, which may return 2xx codes. This fix is not needed for Python 2.6+.
Sent the patch to a user, and they verified it fixed their problem. Tested with my Python 2.7 install, and had no issues fetching from GitHub.