{"action":"created","comment":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments/202523375","pull_request_review_id":137246662,"id":202523375,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMjUyMzM3NQ==","diff_hunk":"@@ -0,0 +1,57 @@\n+from functools import partial\n+import pytest\n+\n+from pandas.io.formats.console import detect_console_encoding\n+\n+\n+def mock_raises_exception(error=Exception):","path":"pandas/tests/io/formats/test_console.py","position":7,"original_position":7,"commit_id":"4790e10792d3fb14a4eb6590f91f7fcf117b3277","original_commit_id":"4790e10792d3fb14a4eb6590f91f7fcf117b3277","user":{"login":"jreback","id":953992,"node_id":"MDQ6VXNlcjk1Mzk5Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/953992?v=4","gravatar_id":"","url":"https://api.github.com/users/jreback","html_url":"https://github.com/jreback","followers_url":"https://api.github.com/users/jreback/followers","following_url":"https://api.github.com/users/jreback/following{/other_user}","gists_url":"https://api.github.com/users/jreback/gists{/gist_id}","starred_url":"https://api.github.com/users/jreback/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreback/subscriptions","organizations_url":"https://api.github.com/users/jreback/orgs","repos_url":"https://api.github.com/users/jreback/repos","events_url":"https://api.github.com/users/jreback/events{/privacy}","received_events_url":"https://api.github.com/users/jreback/received_events","type":"User","site_admin":false},"body":"what is this for?","created_at":"2018-07-14T19:27:45Z","updated_at":"2018-07-14T19:29:47Z","html_url":"https://github.com/pandas-dev/pandas/pull/21531#discussion_r202523375","pull_request_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments/202523375"},"html":{"href":"https://github.com/pandas-dev/pandas/pull/21531#discussion_r202523375"},"pull_request":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531"}}},"pull_request":{"url":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531","id":195609468,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk1NjA5NDY4","html_url":"https://github.com/pandas-dev/pandas/pull/21531","diff_url":"https://github.com/pandas-dev/pandas/pull/21531.diff","patch_url":"https://github.com/pandas-dev/pandas/pull/21531.patch","issue_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21531","number":21531,"state":"open","locked":false,"title":"BUG: Allow IOErrors when attempting to retrieve default client encoding.","user":{"login":"JayOfferdahl","id":6487620,"node_id":"MDQ6VXNlcjY0ODc2MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/6487620?v=4","gravatar_id":"","url":"https://api.github.com/users/JayOfferdahl","html_url":"https://github.com/JayOfferdahl","followers_url":"https://api.github.com/users/JayOfferdahl/followers","following_url":"https://api.github.com/users/JayOfferdahl/following{/other_user}","gists_url":"https://api.github.com/users/JayOfferdahl/gists{/gist_id}","starred_url":"https://api.github.com/users/JayOfferdahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayOfferdahl/subscriptions","organizations_url":"https://api.github.com/users/JayOfferdahl/orgs","repos_url":"https://api.github.com/users/JayOfferdahl/repos","events_url":"https://api.github.com/users/JayOfferdahl/events{/privacy}","received_events_url":"https://api.github.com/users/JayOfferdahl/received_events","type":"User","site_admin":false},"body":"- [X] closes #21552 \r\n\r\nWhen using mod_wsgi, access to sys.stdout is restricted by default. To handle this case, catch a base exception instead of a more specific AttributeError during this process to include the thrown IOError by mod_wsgi.\r\n","created_at":"2018-06-18T18:26:25Z","updated_at":"2018-07-14T19:29:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"89a0171b2be299391126777053fcacfac9ff4daa","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":76811,"node_id":"MDU6TGFiZWw3NjgxMQ==","url":"https://api.github.com/repos/pandas-dev/pandas/labels/Bug","name":"Bug","color":"e10c02","default":false},{"id":2301354,"node_id":"MDU6TGFiZWwyMzAxMzU0","url":"https://api.github.com/repos/pandas-dev/pandas/labels/Data%20IO","name":"Data IO","color":"06909A","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531/commits","review_comments_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531/comments","review_comment_url":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/issues/21531/comments","statuses_url":"https://api.github.com/repos/pandas-dev/pandas/statuses/4790e10792d3fb14a4eb6590f91f7fcf117b3277","head":{"label":"JayOfferdahl:get-client-encoding-on-mod-wsgi","ref":"get-client-encoding-on-mod-wsgi","sha":"4790e10792d3fb14a4eb6590f91f7fcf117b3277","user":{"login":"JayOfferdahl","id":6487620,"node_id":"MDQ6VXNlcjY0ODc2MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/6487620?v=4","gravatar_id":"","url":"https://api.github.com/users/JayOfferdahl","html_url":"https://github.com/JayOfferdahl","followers_url":"https://api.github.com/users/JayOfferdahl/followers","following_url":"https://api.github.com/users/JayOfferdahl/following{/other_user}","gists_url":"https://api.github.com/users/JayOfferdahl/gists{/gist_id}","starred_url":"https://api.github.com/users/JayOfferdahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayOfferdahl/subscriptions","organizations_url":"https://api.github.com/users/JayOfferdahl/orgs","repos_url":"https://api.github.com/users/JayOfferdahl/repos","events_url":"https://api.github.com/users/JayOfferdahl/events{/privacy}","received_events_url":"https://api.github.com/users/JayOfferdahl/received_events","type":"User","site_admin":false},"repo":{"id":137789692,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc3ODk2OTI=","name":"pandas","full_name":"JayOfferdahl/pandas","owner":{"login":"JayOfferdahl","id":6487620,"node_id":"MDQ6VXNlcjY0ODc2MjA=","avatar_url":"https://avatars2.githubusercontent.com/u/6487620?v=4","gravatar_id":"","url":"https://api.github.com/users/JayOfferdahl","html_url":"https://github.com/JayOfferdahl","followers_url":"https://api.github.com/users/JayOfferdahl/followers","following_url":"https://api.github.com/users/JayOfferdahl/following{/other_user}","gists_url":"https://api.github.com/users/JayOfferdahl/gists{/gist_id}","starred_url":"https://api.github.com/users/JayOfferdahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JayOfferdahl/subscriptions","organizations_url":"https://api.github.com/users/JayOfferdahl/orgs","repos_url":"https://api.github.com/users/JayOfferdahl/repos","events_url":"https://api.github.com/users/JayOfferdahl/events{/privacy}","received_events_url":"https://api.github.com/users/JayOfferdahl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JayOfferdahl/pandas","description":"Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more","fork":true,"url":"https://api.github.com/repos/JayOfferdahl/pandas","forks_url":"https://api.github.com/repos/JayOfferdahl/pandas/forks","keys_url":"https://api.github.com/repos/JayOfferdahl/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JayOfferdahl/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JayOfferdahl/pandas/teams","hooks_url":"https://api.github.com/repos/JayOfferdahl/pandas/hooks","issue_events_url":"https://api.github.com/repos/JayOfferdahl/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/JayOfferdahl/pandas/events","assignees_url":"https://api.github.com/repos/JayOfferdahl/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/JayOfferdahl/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/JayOfferdahl/pandas/tags","blobs_url":"https://api.github.com/repos/JayOfferdahl/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JayOfferdahl/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JayOfferdahl/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/JayOfferdahl/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JayOfferdahl/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/JayOfferdahl/pandas/languages","stargazers_url":"https://api.github.com/repos/JayOfferdahl/pandas/stargazers","contributors_url":"https://api.github.com/repos/JayOfferdahl/pandas/contributors","subscribers_url":"https://api.github.com/repos/JayOfferdahl/pandas/subscribers","subscription_url":"https://api.github.com/repos/JayOfferdahl/pandas/subscription","commits_url":"https://api.github.com/repos/JayOfferdahl/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/JayOfferdahl/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/JayOfferdahl/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/JayOfferdahl/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/JayOfferdahl/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/JayOfferdahl/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JayOfferdahl/pandas/merges","archive_url":"https://api.github.com/repos/JayOfferdahl/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JayOfferdahl/pandas/downloads","issues_url":"https://api.github.com/repos/JayOfferdahl/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/JayOfferdahl/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/JayOfferdahl/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/JayOfferdahl/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JayOfferdahl/pandas/labels{/name}","releases_url":"https://api.github.com/repos/JayOfferdahl/pandas/releases{/id}","deployments_url":"https://api.github.com/repos/JayOfferdahl/pandas/deployments","created_at":"2018-06-18T18:16:40Z","updated_at":"2018-06-18T18:16:46Z","pushed_at":"2018-07-14T18:01:11Z","git_url":"git://github.com/JayOfferdahl/pandas.git","ssh_url":"git@github.com:JayOfferdahl/pandas.git","clone_url":"https://github.com/JayOfferdahl/pandas.git","svn_url":"https://github.com/JayOfferdahl/pandas","homepage":"http://pandas.pydata.org","size":127078,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"pandas-dev:master","ref":"master","sha":"bdb61688aa80a6ec9bdb6832946dd83ab4b4c9c8","user":{"login":"pandas-dev","id":21206976,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMjA2OTc2","avatar_url":"https://avatars2.githubusercontent.com/u/21206976?v=4","gravatar_id":"","url":"https://api.github.com/users/pandas-dev","html_url":"https://github.com/pandas-dev","followers_url":"https://api.github.com/users/pandas-dev/followers","following_url":"https://api.github.com/users/pandas-dev/following{/other_user}","gists_url":"https://api.github.com/users/pandas-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pandas-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandas-dev/subscriptions","organizations_url":"https://api.github.com/users/pandas-dev/orgs","repos_url":"https://api.github.com/users/pandas-dev/repos","events_url":"https://api.github.com/users/pandas-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pandas-dev/received_events","type":"Organization","site_admin":false},"repo":{"id":858127,"node_id":"MDEwOlJlcG9zaXRvcnk4NTgxMjc=","name":"pandas","full_name":"pandas-dev/pandas","owner":{"login":"pandas-dev","id":21206976,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIxMjA2OTc2","avatar_url":"https://avatars2.githubusercontent.com/u/21206976?v=4","gravatar_id":"","url":"https://api.github.com/users/pandas-dev","html_url":"https://github.com/pandas-dev","followers_url":"https://api.github.com/users/pandas-dev/followers","following_url":"https://api.github.com/users/pandas-dev/following{/other_user}","gists_url":"https://api.github.com/users/pandas-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/pandas-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pandas-dev/subscriptions","organizations_url":"https://api.github.com/users/pandas-dev/orgs","repos_url":"https://api.github.com/users/pandas-dev/repos","events_url":"https://api.github.com/users/pandas-dev/events{/privacy}","received_events_url":"https://api.github.com/users/pandas-dev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/pandas-dev/pandas","description":"Flexible and powerful data analysis / manipulation library for Python, providing labeled data structures similar to R data.frame objects, statistical functions, and much more","fork":false,"url":"https://api.github.com/repos/pandas-dev/pandas","forks_url":"https://api.github.com/repos/pandas-dev/pandas/forks","keys_url":"https://api.github.com/repos/pandas-dev/pandas/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pandas-dev/pandas/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pandas-dev/pandas/teams","hooks_url":"https://api.github.com/repos/pandas-dev/pandas/hooks","issue_events_url":"https://api.github.com/repos/pandas-dev/pandas/issues/events{/number}","events_url":"https://api.github.com/repos/pandas-dev/pandas/events","assignees_url":"https://api.github.com/repos/pandas-dev/pandas/assignees{/user}","branches_url":"https://api.github.com/repos/pandas-dev/pandas/branches{/branch}","tags_url":"https://api.github.com/repos/pandas-dev/pandas/tags","blobs_url":"https://api.github.com/repos/pandas-dev/pandas/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pandas-dev/pandas/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pandas-dev/pandas/git/refs{/sha}","trees_url":"https://api.github.com/repos/pandas-dev/pandas/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pandas-dev/pandas/statuses/{sha}","languages_url":"https://api.github.com/repos/pandas-dev/pandas/languages","stargazers_url":"https://api.github.com/repos/pandas-dev/pandas/stargazers","contributors_url":"https://api.github.com/repos/pandas-dev/pandas/contributors","subscribers_url":"https://api.github.com/repos/pandas-dev/pandas/subscribers","subscription_url":"https://api.github.com/repos/pandas-dev/pandas/subscription","commits_url":"https://api.github.com/repos/pandas-dev/pandas/commits{/sha}","git_commits_url":"https://api.github.com/repos/pandas-dev/pandas/git/commits{/sha}","comments_url":"https://api.github.com/repos/pandas-dev/pandas/comments{/number}","issue_comment_url":"https://api.github.com/repos/pandas-dev/pandas/issues/comments{/number}","contents_url":"https://api.github.com/repos/pandas-dev/pandas/contents/{+path}","compare_url":"https://api.github.com/repos/pandas-dev/pandas/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pandas-dev/pandas/merges","archive_url":"https://api.github.com/repos/pandas-dev/pandas/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pandas-dev/pandas/downloads","issues_url":"https://api.github.com/repos/pandas-dev/pandas/issues{/number}","pulls_url":"https://api.github.com/repos/pandas-dev/pandas/pulls{/number}","milestones_url":"https://api.github.com/repos/pandas-dev/pandas/milestones{/number}","notifications_url":"https://api.github.com/repos/pandas-dev/pandas/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pandas-dev/pandas/labels{/name}","releases_url":"https://api.github.com/repos/pandas-dev/pandas/releases{/id}","deployments_url":"https://api.github.com/repos/pandas-dev/pandas/deployments","created_at":"2010-08-24T01:37:33Z","updated_at":"2018-07-14T18:34:24Z","pushed_at":"2018-07-14T18:01:14Z","git_url":"git://github.com/pandas-dev/pandas.git","ssh_url":"git@github.com:pandas-dev/pandas.git","clone_url":"https://github.com/pandas-dev/pandas.git","svn_url":"https://github.com/pandas-dev/pandas","homepage":"http://pandas.pydata.org","size":127368,"stargazers_count":15084,"watchers_count":15084,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":6060,"mirror_url":null,"archived":false,"open_issues_count":2617,"license":{"key":"bsd-3-clause","name":"BSD 3-Clause \"New\" or \"Revised\" License","spdx_id":"BSD-3-Clause","url":"https://api.github.com/licenses/bsd-3-clause","node_id":"MDc6TGljZW5zZTU="},"forks":6060,"open_issues":2617,"watchers":15084,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531"},"html":{"href":"https://github.com/pandas-dev/pandas/pull/21531"},"issue":{"href":"https://api.github.com/repos/pandas-dev/pandas/issues/21531"},"comments":{"href":"https://api.github.com/repos/pandas-dev/pandas/issues/21531/comments"},"review_comments":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531/comments"},"review_comment":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pandas-dev/pandas/pulls/21531/commits"},"statuses":{"href":"https://api.github.com/repos/pandas-dev/pandas/statuses/4790e10792d3fb14a4eb6590f91f7fcf117b3277"}},"author_association":"NONE"}}
{"actor":{"display_login":"jreback"}}