{"action":"created","comment":{"url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/comments/30131150","id":30131150,"diff_hunk":"@@ -35,12 +35,19 @@ def request(self, method, path, data=None, *args, **kwargs):\n             **kwargs\n         )\n \n-        response.raise_for_status(allow_redirects=False)\n+        response.raise_for_status()\n+\n+        if 300 <= response.status_code < 400:\n+            # support 0.12.1 by setting response seperately\n+            exception = HTTPError('%s Encountered Redirect' % response.status_code)\n+            exception.response = response\n+            raise exception","path":"byterestclient/__init__.py","position":11,"original_position":11,"commit_id":"6b4ddaa89f35ba5811a51eac88d8152a6381f895","original_commit_id":"6b4ddaa89f35ba5811a51eac88d8152a6381f895","user":{"login":"allardhoeve","id":1262726,"avatar_url":"https://avatars.githubusercontent.com/u/1262726?v=3","gravatar_id":"","url":"https://api.github.com/users/allardhoeve","html_url":"https://github.com/allardhoeve","followers_url":"https://api.github.com/users/allardhoeve/followers","following_url":"https://api.github.com/users/allardhoeve/following{/other_user}","gists_url":"https://api.github.com/users/allardhoeve/gists{/gist_id}","starred_url":"https://api.github.com/users/allardhoeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allardhoeve/subscriptions","organizations_url":"https://api.github.com/users/allardhoeve/orgs","repos_url":"https://api.github.com/users/allardhoeve/repos","events_url":"https://api.github.com/users/allardhoeve/events{/privacy}","received_events_url":"https://api.github.com/users/allardhoeve/received_events","type":"User","site_admin":false},"body":"Yeah, there is `requests.models.REDIRECT_STATI`, which is faulty latin and\nan ugly import :wink:.\n\nBut should probably use that.\n","created_at":"2015-05-12T13:09:30Z","updated_at":"2015-05-12T13:09:30Z","html_url":"https://github.com/ByteInternet/python-byterestclient/pull/13#discussion_r30131150","pull_request_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/comments/30131150"},"html":{"href":"https://github.com/ByteInternet/python-byterestclient/pull/13#discussion_r30131150"},"pull_request":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13","id":35221620,"html_url":"https://github.com/ByteInternet/python-byterestclient/pull/13","diff_url":"https://github.com/ByteInternet/python-byterestclient/pull/13.diff","patch_url":"https://github.com/ByteInternet/python-byterestclient/pull/13.patch","issue_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/13","number":13,"state":"closed","locked":false,"title":"Raise for status 0.12.1 style & test older and newer versions of requests","user":{"login":"allardhoeve","id":1262726,"avatar_url":"https://avatars.githubusercontent.com/u/1262726?v=3","gravatar_id":"","url":"https://api.github.com/users/allardhoeve","html_url":"https://github.com/allardhoeve","followers_url":"https://api.github.com/users/allardhoeve/followers","following_url":"https://api.github.com/users/allardhoeve/following{/other_user}","gists_url":"https://api.github.com/users/allardhoeve/gists{/gist_id}","starred_url":"https://api.github.com/users/allardhoeve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allardhoeve/subscriptions","organizations_url":"https://api.github.com/users/allardhoeve/orgs","repos_url":"https://api.github.com/users/allardhoeve/repos","events_url":"https://api.github.com/users/allardhoeve/events{/privacy}","received_events_url":"https://api.github.com/users/allardhoeve/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-12T12:37:58Z","updated_at":"2015-05-12T13:09:30Z","closed_at":"2015-05-12T12:59:11Z","merged_at":"2015-05-12T12:59:11Z","merge_commit_sha":"bfd184775f6741936996fdb503c6dd5013ea0d15","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13/commits","review_comments_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13/comments","review_comment_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/13/comments","statuses_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/statuses/6b4ddaa89f35ba5811a51eac88d8152a6381f895","head":{"label":"ByteInternet:raise-for-status-0.12.1-style","ref":"raise-for-status-0.12.1-style","sha":"6b4ddaa89f35ba5811a51eac88d8152a6381f895","user":{"login":"ByteInternet","id":1357758,"avatar_url":"https://avatars.githubusercontent.com/u/1357758?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteInternet","html_url":"https://github.com/ByteInternet","followers_url":"https://api.github.com/users/ByteInternet/followers","following_url":"https://api.github.com/users/ByteInternet/following{/other_user}","gists_url":"https://api.github.com/users/ByteInternet/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteInternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteInternet/subscriptions","organizations_url":"https://api.github.com/users/ByteInternet/orgs","repos_url":"https://api.github.com/users/ByteInternet/repos","events_url":"https://api.github.com/users/ByteInternet/events{/privacy}","received_events_url":"https://api.github.com/users/ByteInternet/received_events","type":"Organization","site_admin":false},"repo":{"id":16984252,"name":"python-byterestclient","full_name":"ByteInternet/python-byterestclient","owner":{"login":"ByteInternet","id":1357758,"avatar_url":"https://avatars.githubusercontent.com/u/1357758?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteInternet","html_url":"https://github.com/ByteInternet","followers_url":"https://api.github.com/users/ByteInternet/followers","following_url":"https://api.github.com/users/ByteInternet/following{/other_user}","gists_url":"https://api.github.com/users/ByteInternet/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteInternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteInternet/subscriptions","organizations_url":"https://api.github.com/users/ByteInternet/orgs","repos_url":"https://api.github.com/users/ByteInternet/repos","events_url":"https://api.github.com/users/ByteInternet/events{/privacy}","received_events_url":"https://api.github.com/users/ByteInternet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ByteInternet/python-byterestclient","description":"A generic API Client","fork":false,"url":"https://api.github.com/repos/ByteInternet/python-byterestclient","forks_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/forks","keys_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/teams","hooks_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/hooks","issue_events_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/events{/number}","events_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/events","assignees_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/assignees{/user}","branches_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/branches{/branch}","tags_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/tags","blobs_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/statuses/{sha}","languages_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/languages","stargazers_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/stargazers","contributors_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/contributors","subscribers_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/subscribers","subscription_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/subscription","commits_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/contents/{+path}","compare_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/merges","archive_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/downloads","issues_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues{/number}","pulls_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls{/number}","milestones_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/milestones{/number}","notifications_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/labels{/name}","releases_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/releases{/id}","created_at":"2014-02-19T12:59:38Z","updated_at":"2014-11-26T13:40:45Z","pushed_at":"2015-05-12T13:07:54Z","git_url":"git://github.com/ByteInternet/python-byterestclient.git","ssh_url":"git@github.com:ByteInternet/python-byterestclient.git","clone_url":"https://github.com/ByteInternet/python-byterestclient.git","svn_url":"https://github.com/ByteInternet/python-byterestclient","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ByteInternet:master","ref":"master","sha":"c23e7529465fb4505916b7971f31201a0e78357a","user":{"login":"ByteInternet","id":1357758,"avatar_url":"https://avatars.githubusercontent.com/u/1357758?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteInternet","html_url":"https://github.com/ByteInternet","followers_url":"https://api.github.com/users/ByteInternet/followers","following_url":"https://api.github.com/users/ByteInternet/following{/other_user}","gists_url":"https://api.github.com/users/ByteInternet/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteInternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteInternet/subscriptions","organizations_url":"https://api.github.com/users/ByteInternet/orgs","repos_url":"https://api.github.com/users/ByteInternet/repos","events_url":"https://api.github.com/users/ByteInternet/events{/privacy}","received_events_url":"https://api.github.com/users/ByteInternet/received_events","type":"Organization","site_admin":false},"repo":{"id":16984252,"name":"python-byterestclient","full_name":"ByteInternet/python-byterestclient","owner":{"login":"ByteInternet","id":1357758,"avatar_url":"https://avatars.githubusercontent.com/u/1357758?v=3","gravatar_id":"","url":"https://api.github.com/users/ByteInternet","html_url":"https://github.com/ByteInternet","followers_url":"https://api.github.com/users/ByteInternet/followers","following_url":"https://api.github.com/users/ByteInternet/following{/other_user}","gists_url":"https://api.github.com/users/ByteInternet/gists{/gist_id}","starred_url":"https://api.github.com/users/ByteInternet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ByteInternet/subscriptions","organizations_url":"https://api.github.com/users/ByteInternet/orgs","repos_url":"https://api.github.com/users/ByteInternet/repos","events_url":"https://api.github.com/users/ByteInternet/events{/privacy}","received_events_url":"https://api.github.com/users/ByteInternet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ByteInternet/python-byterestclient","description":"A generic API Client","fork":false,"url":"https://api.github.com/repos/ByteInternet/python-byterestclient","forks_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/forks","keys_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/teams","hooks_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/hooks","issue_events_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/events{/number}","events_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/events","assignees_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/assignees{/user}","branches_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/branches{/branch}","tags_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/tags","blobs_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/refs{/sha}","trees_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/statuses/{sha}","languages_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/languages","stargazers_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/stargazers","contributors_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/contributors","subscribers_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/subscribers","subscription_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/subscription","commits_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/commits{/sha}","git_commits_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/git/commits{/sha}","comments_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/comments{/number}","issue_comment_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/comments{/number}","contents_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/contents/{+path}","compare_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/merges","archive_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/downloads","issues_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues{/number}","pulls_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls{/number}","milestones_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/milestones{/number}","notifications_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/labels{/name}","releases_url":"https://api.github.com/repos/ByteInternet/python-byterestclient/releases{/id}","created_at":"2014-02-19T12:59:38Z","updated_at":"2014-11-26T13:40:45Z","pushed_at":"2015-05-12T13:07:54Z","git_url":"git://github.com/ByteInternet/python-byterestclient.git","ssh_url":"git@github.com:ByteInternet/python-byterestclient.git","clone_url":"https://github.com/ByteInternet/python-byterestclient.git","svn_url":"https://github.com/ByteInternet/python-byterestclient","homepage":null,"size":364,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13"},"html":{"href":"https://github.com/ByteInternet/python-byterestclient/pull/13"},"issue":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/13"},"comments":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/ByteInternet/python-byterestclient/statuses/6b4ddaa89f35ba5811a51eac88d8152a6381f895"}}}}