{"action":"closed","number":5788,"pull_request":{"url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5788","id":54920383,"html_url":"https://github.com/matplotlib/matplotlib/pull/5788","diff_url":"https://github.com/matplotlib/matplotlib/pull/5788.diff","patch_url":"https://github.com/matplotlib/matplotlib/pull/5788.patch","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5788","number":5788,"state":"closed","locked":false,"title":"Fix ImportError: No module named 'StringIO' on Python 3","user":{"login":"cgohlke","id":483428,"avatar_url":"https://avatars.githubusercontent.com/u/483428?v=3","gravatar_id":"","url":"https://api.github.com/users/cgohlke","html_url":"https://github.com/cgohlke","followers_url":"https://api.github.com/users/cgohlke/followers","following_url":"https://api.github.com/users/cgohlke/following{/other_user}","gists_url":"https://api.github.com/users/cgohlke/gists{/gist_id}","starred_url":"https://api.github.com/users/cgohlke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgohlke/subscriptions","organizations_url":"https://api.github.com/users/cgohlke/orgs","repos_url":"https://api.github.com/users/cgohlke/repos","events_url":"https://api.github.com/users/cgohlke/events{/privacy}","received_events_url":"https://api.github.com/users/cgohlke/received_events","type":"User","site_admin":false},"body":"Several examples use the `StringIO` module, which fails to import on Python 3. \r\nThis PR uses `io.BytesIO` instead. Tested with Python 2.7 and 3.5 on Windows. \r\nPlease review. Not sure if it would be better to use `io.StringIO` or `six.StringIO` instead.","created_at":"2016-01-03T07:30:54Z","updated_at":"2016-01-07T03:33:53Z","closed_at":"2016-01-07T03:33:53Z","merged_at":"2016-01-07T03:33:53Z","merge_commit_sha":"9d4c8ed3caab8be2c95e1a240aad771addee5375","assignee":null,"milestone":{"url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/21","html_url":"https://github.com/matplotlib/matplotlib/milestones/Critical%20bugfix%20release%20(1.5.1)","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones/21/labels","id":1385613,"number":21,"title":"Critical bugfix release (1.5.1)","description":"","creator":{"login":"mdboom","id":38294,"avatar_url":"https://avatars.githubusercontent.com/u/38294?v=3","gravatar_id":"","url":"https://api.github.com/users/mdboom","html_url":"https://github.com/mdboom","followers_url":"https://api.github.com/users/mdboom/followers","following_url":"https://api.github.com/users/mdboom/following{/other_user}","gists_url":"https://api.github.com/users/mdboom/gists{/gist_id}","starred_url":"https://api.github.com/users/mdboom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdboom/subscriptions","organizations_url":"https://api.github.com/users/mdboom/orgs","repos_url":"https://api.github.com/users/mdboom/repos","events_url":"https://api.github.com/users/mdboom/events{/privacy}","received_events_url":"https://api.github.com/users/mdboom/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":134,"state":"open","created_at":"2015-10-30T15:12:24Z","updated_at":"2016-01-07T03:33:53Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5788/commits","review_comments_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5788/comments","review_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5788/comments","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/6461fd9f818846c915c9b683358afce74f6db7aa","head":{"label":"cgohlke:patch-1","ref":"patch-1","sha":"6461fd9f818846c915c9b683358afce74f6db7aa","user":{"login":"cgohlke","id":483428,"avatar_url":"https://avatars.githubusercontent.com/u/483428?v=3","gravatar_id":"","url":"https://api.github.com/users/cgohlke","html_url":"https://github.com/cgohlke","followers_url":"https://api.github.com/users/cgohlke/followers","following_url":"https://api.github.com/users/cgohlke/following{/other_user}","gists_url":"https://api.github.com/users/cgohlke/gists{/gist_id}","starred_url":"https://api.github.com/users/cgohlke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgohlke/subscriptions","organizations_url":"https://api.github.com/users/cgohlke/orgs","repos_url":"https://api.github.com/users/cgohlke/repos","events_url":"https://api.github.com/users/cgohlke/events{/privacy}","received_events_url":"https://api.github.com/users/cgohlke/received_events","type":"User","site_admin":false},"repo":{"id":48928238,"name":"matplotlib","full_name":"cgohlke/matplotlib","owner":{"login":"cgohlke","id":483428,"avatar_url":"https://avatars.githubusercontent.com/u/483428?v=3","gravatar_id":"","url":"https://api.github.com/users/cgohlke","html_url":"https://github.com/cgohlke","followers_url":"https://api.github.com/users/cgohlke/followers","following_url":"https://api.github.com/users/cgohlke/following{/other_user}","gists_url":"https://api.github.com/users/cgohlke/gists{/gist_id}","starred_url":"https://api.github.com/users/cgohlke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgohlke/subscriptions","organizations_url":"https://api.github.com/users/cgohlke/orgs","repos_url":"https://api.github.com/users/cgohlke/repos","events_url":"https://api.github.com/users/cgohlke/events{/privacy}","received_events_url":"https://api.github.com/users/cgohlke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cgohlke/matplotlib","description":"matplotlib: plotting with Python","fork":true,"url":"https://api.github.com/repos/cgohlke/matplotlib","forks_url":"https://api.github.com/repos/cgohlke/matplotlib/forks","keys_url":"https://api.github.com/repos/cgohlke/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgohlke/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgohlke/matplotlib/teams","hooks_url":"https://api.github.com/repos/cgohlke/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/cgohlke/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/cgohlke/matplotlib/events","assignees_url":"https://api.github.com/repos/cgohlke/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/cgohlke/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/cgohlke/matplotlib/tags","blobs_url":"https://api.github.com/repos/cgohlke/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgohlke/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgohlke/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgohlke/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgohlke/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/cgohlke/matplotlib/languages","stargazers_url":"https://api.github.com/repos/cgohlke/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/cgohlke/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/cgohlke/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/cgohlke/matplotlib/subscription","commits_url":"https://api.github.com/repos/cgohlke/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgohlke/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgohlke/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgohlke/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgohlke/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/cgohlke/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgohlke/matplotlib/merges","archive_url":"https://api.github.com/repos/cgohlke/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgohlke/matplotlib/downloads","issues_url":"https://api.github.com/repos/cgohlke/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/cgohlke/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/cgohlke/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/cgohlke/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgohlke/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/cgohlke/matplotlib/releases{/id}","created_at":"2016-01-03T00:08:21Z","updated_at":"2016-01-03T00:08:30Z","pushed_at":"2016-01-04T07:37:19Z","git_url":"git://github.com/cgohlke/matplotlib.git","ssh_url":"git@github.com:cgohlke/matplotlib.git","clone_url":"https://github.com/cgohlke/matplotlib.git","svn_url":"https://github.com/cgohlke/matplotlib","homepage":"http://matplotlib.org/","size":262889,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"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":"matplotlib:master","ref":"master","sha":"deea685ba3189306d48346ab68a99d86169745b8","user":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"repo":{"id":1385122,"name":"matplotlib","full_name":"matplotlib/matplotlib","owner":{"login":"matplotlib","id":215947,"avatar_url":"https://avatars.githubusercontent.com/u/215947?v=3","gravatar_id":"","url":"https://api.github.com/users/matplotlib","html_url":"https://github.com/matplotlib","followers_url":"https://api.github.com/users/matplotlib/followers","following_url":"https://api.github.com/users/matplotlib/following{/other_user}","gists_url":"https://api.github.com/users/matplotlib/gists{/gist_id}","starred_url":"https://api.github.com/users/matplotlib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matplotlib/subscriptions","organizations_url":"https://api.github.com/users/matplotlib/orgs","repos_url":"https://api.github.com/users/matplotlib/repos","events_url":"https://api.github.com/users/matplotlib/events{/privacy}","received_events_url":"https://api.github.com/users/matplotlib/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/matplotlib/matplotlib","description":"matplotlib: plotting with Python","fork":false,"url":"https://api.github.com/repos/matplotlib/matplotlib","forks_url":"https://api.github.com/repos/matplotlib/matplotlib/forks","keys_url":"https://api.github.com/repos/matplotlib/matplotlib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matplotlib/matplotlib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matplotlib/matplotlib/teams","hooks_url":"https://api.github.com/repos/matplotlib/matplotlib/hooks","issue_events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/events{/number}","events_url":"https://api.github.com/repos/matplotlib/matplotlib/events","assignees_url":"https://api.github.com/repos/matplotlib/matplotlib/assignees{/user}","branches_url":"https://api.github.com/repos/matplotlib/matplotlib/branches{/branch}","tags_url":"https://api.github.com/repos/matplotlib/matplotlib/tags","blobs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matplotlib/matplotlib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matplotlib/matplotlib/git/refs{/sha}","trees_url":"https://api.github.com/repos/matplotlib/matplotlib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matplotlib/matplotlib/statuses/{sha}","languages_url":"https://api.github.com/repos/matplotlib/matplotlib/languages","stargazers_url":"https://api.github.com/repos/matplotlib/matplotlib/stargazers","contributors_url":"https://api.github.com/repos/matplotlib/matplotlib/contributors","subscribers_url":"https://api.github.com/repos/matplotlib/matplotlib/subscribers","subscription_url":"https://api.github.com/repos/matplotlib/matplotlib/subscription","commits_url":"https://api.github.com/repos/matplotlib/matplotlib/commits{/sha}","git_commits_url":"https://api.github.com/repos/matplotlib/matplotlib/git/commits{/sha}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/comments{/number}","issue_comment_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments{/number}","contents_url":"https://api.github.com/repos/matplotlib/matplotlib/contents/{+path}","compare_url":"https://api.github.com/repos/matplotlib/matplotlib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matplotlib/matplotlib/merges","archive_url":"https://api.github.com/repos/matplotlib/matplotlib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matplotlib/matplotlib/downloads","issues_url":"https://api.github.com/repos/matplotlib/matplotlib/issues{/number}","pulls_url":"https://api.github.com/repos/matplotlib/matplotlib/pulls{/number}","milestones_url":"https://api.github.com/repos/matplotlib/matplotlib/milestones{/number}","notifications_url":"https://api.github.com/repos/matplotlib/matplotlib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/labels{/name}","releases_url":"https://api.github.com/repos/matplotlib/matplotlib/releases{/id}","created_at":"2011-02-19T03:17:12Z","updated_at":"2016-01-07T01:45:17Z","pushed_at":"2016-01-07T03:33:40Z","git_url":"git://github.com/matplotlib/matplotlib.git","ssh_url":"git@github.com:matplotlib/matplotlib.git","clone_url":"https://github.com/matplotlib/matplotlib.git","svn_url":"https://github.com/matplotlib/matplotlib","homepage":"http://matplotlib.org/","size":333674,"stargazers_count":3150,"watchers_count":3150,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1595,"mirror_url":null,"open_issues_count":783,"forks":1595,"open_issues":783,"watchers":3150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5788"},"html":{"href":"https://github.com/matplotlib/matplotlib/pull/5788"},"issue":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/5788"},"comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/issues/5788/comments"},"review_comments":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5788/comments"},"review_comment":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/matplotlib/matplotlib/pulls/5788/commits"},"statuses":{"href":"https://api.github.com/repos/matplotlib/matplotlib/statuses/6461fd9f818846c915c9b683358afce74f6db7aa"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"tacaswell","id":199813,"avatar_url":"https://avatars.githubusercontent.com/u/199813?v=3","gravatar_id":"","url":"https://api.github.com/users/tacaswell","html_url":"https://github.com/tacaswell","followers_url":"https://api.github.com/users/tacaswell/followers","following_url":"https://api.github.com/users/tacaswell/following{/other_user}","gists_url":"https://api.github.com/users/tacaswell/gists{/gist_id}","starred_url":"https://api.github.com/users/tacaswell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tacaswell/subscriptions","organizations_url":"https://api.github.com/users/tacaswell/orgs","repos_url":"https://api.github.com/users/tacaswell/repos","events_url":"https://api.github.com/users/tacaswell/events{/privacy}","received_events_url":"https://api.github.com/users/tacaswell/received_events","type":"User","site_admin":false},"comments":7,"review_comments":0,"commits":4,"additions":8,"deletions":8,"changed_files":4}}