{"action":"created","issue":{"url":"https://api.github.com/repos/PyGithub/PyGithub/issues/383","repository_url":"https://api.github.com/repos/PyGithub/PyGithub","labels_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/383/labels{/name}","comments_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/383/comments","events_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/383/events","html_url":"https://github.com/PyGithub/PyGithub/pull/383","id":129888848,"number":383,"title":"Replace httplib with requests","user":{"login":"nricklin","id":5749532,"avatar_url":"https://avatars.githubusercontent.com/u/5749532?v=3","gravatar_id":"","url":"https://api.github.com/users/nricklin","html_url":"https://github.com/nricklin","followers_url":"https://api.github.com/users/nricklin/followers","following_url":"https://api.github.com/users/nricklin/following{/other_user}","gists_url":"https://api.github.com/users/nricklin/gists{/gist_id}","starred_url":"https://api.github.com/users/nricklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nricklin/subscriptions","organizations_url":"https://api.github.com/users/nricklin/orgs","repos_url":"https://api.github.com/users/nricklin/repos","events_url":"https://api.github.com/users/nricklin/events{/privacy}","received_events_url":"https://api.github.com/users/nricklin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-29T21:36:33Z","updated_at":"2016-02-15T20:03:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/PyGithub/PyGithub/pulls/383","html_url":"https://github.com/PyGithub/PyGithub/pull/383","diff_url":"https://github.com/PyGithub/PyGithub/pull/383.diff","patch_url":"https://github.com/PyGithub/PyGithub/pull/383.patch"},"body":"Here's a fairly simple set of tweaks to replace httplib with requests.\r\n\r\nWhy?  Two main reasons:\r\n* Requests is WAY better (http://docs.python-requests.org/en/latest/)\r\n* I wanted to use pyvcr or httpretty as a quick and simple way to unit test my scripts that used PyGithub, neither of which worked out of the box.  They both work great with requests."},"comment":{"url":"https://api.github.com/repos/PyGithub/PyGithub/issues/comments/184367354","html_url":"https://github.com/PyGithub/PyGithub/pull/383#issuecomment-184367354","issue_url":"https://api.github.com/repos/PyGithub/PyGithub/issues/383","id":184367354,"user":{"login":"nricklin","id":5749532,"avatar_url":"https://avatars.githubusercontent.com/u/5749532?v=3","gravatar_id":"","url":"https://api.github.com/users/nricklin","html_url":"https://github.com/nricklin","followers_url":"https://api.github.com/users/nricklin/followers","following_url":"https://api.github.com/users/nricklin/following{/other_user}","gists_url":"https://api.github.com/users/nricklin/gists{/gist_id}","starred_url":"https://api.github.com/users/nricklin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nricklin/subscriptions","organizations_url":"https://api.github.com/users/nricklin/orgs","repos_url":"https://api.github.com/users/nricklin/repos","events_url":"https://api.github.com/users/nricklin/events{/privacy}","received_events_url":"https://api.github.com/users/nricklin/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T20:03:59Z","updated_at":"2016-02-15T20:03:59Z","body":"Won't it just work?  Part of this PR \"mocks\" the class of httplib manipulated by the tests."}}