Fix HTTP requests on Python 2.5.x.

Review Request #4375 — Created Aug. 2, 2013 and submitted

Information

Review Board
release-1.7.x

Reviewers

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.
reviewbot
  1. This is a review from Review Bot.
      Tool: PEP8 Style Checker
      Processed Files:
        reviewboard/hostingsvcs/service.py
      Ignored Files:
    
    
  2. 
      
reviewbot
  1. This is a review from Review Bot.
      Tool: Pyflakes
      Processed Files:
        reviewboard/hostingsvcs/service.py
      Ignored Files:
    
    
  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Loading...