{"action":"created","comment":{"url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/comments/27201177","id":27201177,"diff_hunk":"@@ -43,7 +44,8 @@ def visit_Assign(self, node):\n def read_version():\n     \"\"\"Read version from httpretty/version.py without loading any files\"\"\"\n     finder = VersionFinder()\n-    finder.visit(ast.parse(local_file('httpretty', '__init__.py')))\n+    finder.visit(\n+        ast.parse(local_file('httpretty', '__init__.py').encode('utf-8')))","path":"setup.py","position":14,"original_position":14,"commit_id":"f899d1bda8234658c2cec5aab027cb5b7c42203c","original_commit_id":"f899d1bda8234658c2cec5aab027cb5b7c42203c","user":{"login":"OddBloke","id":62736,"avatar_url":"https://avatars.githubusercontent.com/u/62736?v=3","gravatar_id":"","url":"https://api.github.com/users/OddBloke","html_url":"https://github.com/OddBloke","followers_url":"https://api.github.com/users/OddBloke/followers","following_url":"https://api.github.com/users/OddBloke/following{/other_user}","gists_url":"https://api.github.com/users/OddBloke/gists{/gist_id}","starred_url":"https://api.github.com/users/OddBloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OddBloke/subscriptions","organizations_url":"https://api.github.com/users/OddBloke/orgs","repos_url":"https://api.github.com/users/OddBloke/repos","events_url":"https://api.github.com/users/OddBloke/events{/privacy}","received_events_url":"https://api.github.com/users/OddBloke/received_events","type":"User","site_admin":false},"body":"We have to encode this away from a unicode string, because otherwise we hit \"SyntaxError: encoding declaration in Unicode string\".","created_at":"2015-03-26T10:22:53Z","updated_at":"2015-03-26T10:22:53Z","html_url":"https://github.com/gabrielfalcao/HTTPretty/pull/238#discussion_r27201177","pull_request_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238","_links":{"self":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/comments/27201177"},"html":{"href":"https://github.com/gabrielfalcao/HTTPretty/pull/238#discussion_r27201177"},"pull_request":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238"}}},"pull_request":{"url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238","id":32004247,"html_url":"https://github.com/gabrielfalcao/HTTPretty/pull/238","diff_url":"https://github.com/gabrielfalcao/HTTPretty/pull/238.diff","patch_url":"https://github.com/gabrielfalcao/HTTPretty/pull/238.patch","issue_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/238","number":238,"state":"open","locked":false,"title":"Read files using utf-8 encoding in setup.py.","user":{"login":"OddBloke","id":62736,"avatar_url":"https://avatars.githubusercontent.com/u/62736?v=3","gravatar_id":"","url":"https://api.github.com/users/OddBloke","html_url":"https://github.com/OddBloke","followers_url":"https://api.github.com/users/OddBloke/followers","following_url":"https://api.github.com/users/OddBloke/following{/other_user}","gists_url":"https://api.github.com/users/OddBloke/gists{/gist_id}","starred_url":"https://api.github.com/users/OddBloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OddBloke/subscriptions","organizations_url":"https://api.github.com/users/OddBloke/orgs","repos_url":"https://api.github.com/users/OddBloke/repos","events_url":"https://api.github.com/users/OddBloke/events{/privacy}","received_events_url":"https://api.github.com/users/OddBloke/received_events","type":"User","site_admin":false},"body":"This should fix #223.\r\n\r\nUsing the tox.ini and setup.py given there (with py27 added as an environment), I see HTTPretty installing successfully on both.","created_at":"2015-03-26T10:22:05Z","updated_at":"2015-03-26T10:22:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"12821d5c2d411fc5e94dc890d84c781a59de4fa4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238/commits","review_comments_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238/comments","review_comment_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/238/comments","statuses_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/statuses/f899d1bda8234658c2cec5aab027cb5b7c42203c","head":{"label":"OddBloke:master","ref":"master","sha":"f899d1bda8234658c2cec5aab027cb5b7c42203c","user":{"login":"OddBloke","id":62736,"avatar_url":"https://avatars.githubusercontent.com/u/62736?v=3","gravatar_id":"","url":"https://api.github.com/users/OddBloke","html_url":"https://github.com/OddBloke","followers_url":"https://api.github.com/users/OddBloke/followers","following_url":"https://api.github.com/users/OddBloke/following{/other_user}","gists_url":"https://api.github.com/users/OddBloke/gists{/gist_id}","starred_url":"https://api.github.com/users/OddBloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OddBloke/subscriptions","organizations_url":"https://api.github.com/users/OddBloke/orgs","repos_url":"https://api.github.com/users/OddBloke/repos","events_url":"https://api.github.com/users/OddBloke/events{/privacy}","received_events_url":"https://api.github.com/users/OddBloke/received_events","type":"User","site_admin":false},"repo":{"id":32920643,"name":"HTTPretty","full_name":"OddBloke/HTTPretty","owner":{"login":"OddBloke","id":62736,"avatar_url":"https://avatars.githubusercontent.com/u/62736?v=3","gravatar_id":"","url":"https://api.github.com/users/OddBloke","html_url":"https://github.com/OddBloke","followers_url":"https://api.github.com/users/OddBloke/followers","following_url":"https://api.github.com/users/OddBloke/following{/other_user}","gists_url":"https://api.github.com/users/OddBloke/gists{/gist_id}","starred_url":"https://api.github.com/users/OddBloke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OddBloke/subscriptions","organizations_url":"https://api.github.com/users/OddBloke/orgs","repos_url":"https://api.github.com/users/OddBloke/repos","events_url":"https://api.github.com/users/OddBloke/events{/privacy}","received_events_url":"https://api.github.com/users/OddBloke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OddBloke/HTTPretty","description":"HTTP client mocking tool for Python, it's like ruby's FakeWeb for python","fork":true,"url":"https://api.github.com/repos/OddBloke/HTTPretty","forks_url":"https://api.github.com/repos/OddBloke/HTTPretty/forks","keys_url":"https://api.github.com/repos/OddBloke/HTTPretty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OddBloke/HTTPretty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OddBloke/HTTPretty/teams","hooks_url":"https://api.github.com/repos/OddBloke/HTTPretty/hooks","issue_events_url":"https://api.github.com/repos/OddBloke/HTTPretty/issues/events{/number}","events_url":"https://api.github.com/repos/OddBloke/HTTPretty/events","assignees_url":"https://api.github.com/repos/OddBloke/HTTPretty/assignees{/user}","branches_url":"https://api.github.com/repos/OddBloke/HTTPretty/branches{/branch}","tags_url":"https://api.github.com/repos/OddBloke/HTTPretty/tags","blobs_url":"https://api.github.com/repos/OddBloke/HTTPretty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OddBloke/HTTPretty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OddBloke/HTTPretty/git/refs{/sha}","trees_url":"https://api.github.com/repos/OddBloke/HTTPretty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OddBloke/HTTPretty/statuses/{sha}","languages_url":"https://api.github.com/repos/OddBloke/HTTPretty/languages","stargazers_url":"https://api.github.com/repos/OddBloke/HTTPretty/stargazers","contributors_url":"https://api.github.com/repos/OddBloke/HTTPretty/contributors","subscribers_url":"https://api.github.com/repos/OddBloke/HTTPretty/subscribers","subscription_url":"https://api.github.com/repos/OddBloke/HTTPretty/subscription","commits_url":"https://api.github.com/repos/OddBloke/HTTPretty/commits{/sha}","git_commits_url":"https://api.github.com/repos/OddBloke/HTTPretty/git/commits{/sha}","comments_url":"https://api.github.com/repos/OddBloke/HTTPretty/comments{/number}","issue_comment_url":"https://api.github.com/repos/OddBloke/HTTPretty/issues/comments{/number}","contents_url":"https://api.github.com/repos/OddBloke/HTTPretty/contents/{+path}","compare_url":"https://api.github.com/repos/OddBloke/HTTPretty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OddBloke/HTTPretty/merges","archive_url":"https://api.github.com/repos/OddBloke/HTTPretty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OddBloke/HTTPretty/downloads","issues_url":"https://api.github.com/repos/OddBloke/HTTPretty/issues{/number}","pulls_url":"https://api.github.com/repos/OddBloke/HTTPretty/pulls{/number}","milestones_url":"https://api.github.com/repos/OddBloke/HTTPretty/milestones{/number}","notifications_url":"https://api.github.com/repos/OddBloke/HTTPretty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OddBloke/HTTPretty/labels{/name}","releases_url":"https://api.github.com/repos/OddBloke/HTTPretty/releases{/id}","created_at":"2015-03-26T10:19:35Z","updated_at":"2015-03-26T10:20:19Z","pushed_at":"2015-03-26T10:20:18Z","git_url":"git://github.com/OddBloke/HTTPretty.git","ssh_url":"git@github.com:OddBloke/HTTPretty.git","clone_url":"https://github.com/OddBloke/HTTPretty.git","svn_url":"https://github.com/OddBloke/HTTPretty","homepage":"http://falcao.it/HTTPretty","size":2759,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"gabrielfalcao:master","ref":"master","sha":"2471cd11fe14d8a9384abc53fc1fe0f1b1daecb7","user":{"login":"gabrielfalcao","id":54914,"avatar_url":"https://avatars.githubusercontent.com/u/54914?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielfalcao","html_url":"https://github.com/gabrielfalcao","followers_url":"https://api.github.com/users/gabrielfalcao/followers","following_url":"https://api.github.com/users/gabrielfalcao/following{/other_user}","gists_url":"https://api.github.com/users/gabrielfalcao/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielfalcao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielfalcao/subscriptions","organizations_url":"https://api.github.com/users/gabrielfalcao/orgs","repos_url":"https://api.github.com/users/gabrielfalcao/repos","events_url":"https://api.github.com/users/gabrielfalcao/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielfalcao/received_events","type":"User","site_admin":false},"repo":{"id":1303056,"name":"HTTPretty","full_name":"gabrielfalcao/HTTPretty","owner":{"login":"gabrielfalcao","id":54914,"avatar_url":"https://avatars.githubusercontent.com/u/54914?v=3","gravatar_id":"","url":"https://api.github.com/users/gabrielfalcao","html_url":"https://github.com/gabrielfalcao","followers_url":"https://api.github.com/users/gabrielfalcao/followers","following_url":"https://api.github.com/users/gabrielfalcao/following{/other_user}","gists_url":"https://api.github.com/users/gabrielfalcao/gists{/gist_id}","starred_url":"https://api.github.com/users/gabrielfalcao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabrielfalcao/subscriptions","organizations_url":"https://api.github.com/users/gabrielfalcao/orgs","repos_url":"https://api.github.com/users/gabrielfalcao/repos","events_url":"https://api.github.com/users/gabrielfalcao/events{/privacy}","received_events_url":"https://api.github.com/users/gabrielfalcao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gabrielfalcao/HTTPretty","description":"HTTP client mocking tool for Python, it's like ruby's FakeWeb for python","fork":false,"url":"https://api.github.com/repos/gabrielfalcao/HTTPretty","forks_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/forks","keys_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/teams","hooks_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/hooks","issue_events_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/events{/number}","events_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/events","assignees_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/assignees{/user}","branches_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/branches{/branch}","tags_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/tags","blobs_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/git/refs{/sha}","trees_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/statuses/{sha}","languages_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/languages","stargazers_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/stargazers","contributors_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/contributors","subscribers_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/subscribers","subscription_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/subscription","commits_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/commits{/sha}","git_commits_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/git/commits{/sha}","comments_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/comments{/number}","issue_comment_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/comments{/number}","contents_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/contents/{+path}","compare_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/merges","archive_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/downloads","issues_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues{/number}","pulls_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls{/number}","milestones_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/milestones{/number}","notifications_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/labels{/name}","releases_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/releases{/id}","created_at":"2011-01-28T14:59:02Z","updated_at":"2015-03-26T05:28:06Z","pushed_at":"2015-03-26T10:22:07Z","git_url":"git://github.com/gabrielfalcao/HTTPretty.git","ssh_url":"git@github.com:gabrielfalcao/HTTPretty.git","clone_url":"https://github.com/gabrielfalcao/HTTPretty.git","svn_url":"https://github.com/gabrielfalcao/HTTPretty","homepage":"http://falcao.it/HTTPretty","size":2759,"stargazers_count":914,"watchers_count":914,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":136,"mirror_url":null,"open_issues_count":93,"forks":136,"open_issues":93,"watchers":914,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238"},"html":{"href":"https://github.com/gabrielfalcao/HTTPretty/pull/238"},"issue":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/238"},"comments":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/238/comments"},"review_comments":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238/comments"},"review_comment":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/pulls/238/commits"},"statuses":{"href":"https://api.github.com/repos/gabrielfalcao/HTTPretty/statuses/f899d1bda8234658c2cec5aab027cb5b7c42203c"}}}}