{"action":"created","issue":{"url":"https://api.github.com/repos/nipy/nibabel/issues/519","repository_url":"https://api.github.com/repos/nipy/nibabel","labels_url":"https://api.github.com/repos/nipy/nibabel/issues/519/labels{/name}","comments_url":"https://api.github.com/repos/nipy/nibabel/issues/519/comments","events_url":"https://api.github.com/repos/nipy/nibabel/issues/519/events","html_url":"https://github.com/nipy/nibabel/pull/519","id":216161505,"number":519,"title":"Import BytesIO from io","user":{"login":"effigies","id":83442,"avatar_url":"https://avatars3.githubusercontent.com/u/83442?v=3","gravatar_id":"","url":"https://api.github.com/users/effigies","html_url":"https://github.com/effigies","followers_url":"https://api.github.com/users/effigies/followers","following_url":"https://api.github.com/users/effigies/following{/other_user}","gists_url":"https://api.github.com/users/effigies/gists{/gist_id}","starred_url":"https://api.github.com/users/effigies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effigies/subscriptions","organizations_url":"https://api.github.com/users/effigies/orgs","repos_url":"https://api.github.com/users/effigies/repos","events_url":"https://api.github.com/users/effigies/events{/privacy}","received_events_url":"https://api.github.com/users/effigies/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-03-22T18:13:43Z","updated_at":"2017-03-22T19:21:30Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/nipy/nibabel/pulls/519","html_url":"https://github.com/nipy/nibabel/pull/519","diff_url":"https://github.com/nipy/nibabel/pull/519.diff","patch_url":"https://github.com/nipy/nibabel/pull/519.patch"},"body":"```Python\r\n>>> import nibabel\r\n[...]/nibabel/cifti2/parse_cifti2.py:24: FutureWarning: We no longer carry a copy of the 'six' package in nibabel; Please import the 'six' package directly\r\n  from ..externals.six import BytesIO\r\n```\r\n\r\nThis PR also updates a bunch of `from six import BytesIO` imports I found while making sure that was the only thing still importing from `externals.six`."},"comment":{"url":"https://api.github.com/repos/nipy/nibabel/issues/comments/288510594","html_url":"https://github.com/nipy/nibabel/pull/519#issuecomment-288510594","issue_url":"https://api.github.com/repos/nipy/nibabel/issues/519","id":288510594,"user":{"login":"effigies","id":83442,"avatar_url":"https://avatars3.githubusercontent.com/u/83442?v=3","gravatar_id":"","url":"https://api.github.com/users/effigies","html_url":"https://github.com/effigies","followers_url":"https://api.github.com/users/effigies/followers","following_url":"https://api.github.com/users/effigies/following{/other_user}","gists_url":"https://api.github.com/users/effigies/gists{/gist_id}","starred_url":"https://api.github.com/users/effigies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/effigies/subscriptions","organizations_url":"https://api.github.com/users/effigies/orgs","repos_url":"https://api.github.com/users/effigies/repos","events_url":"https://api.github.com/users/effigies/events{/privacy}","received_events_url":"https://api.github.com/users/effigies/received_events","type":"User","site_admin":false},"created_at":"2017-03-22T19:21:29Z","updated_at":"2017-03-22T19:21:29Z","body":"Yeah, not planning on refactoring, but I do want to see which ones are safe to switch. Latest commit looks to be [building fine](https://travis-ci.org/nipy/nibabel/builds/213966410) on Travis. At least now we're down to:\r\n\r\n```Shell\r\n$ grep -rI IO nibabel | grep 'six import'\r\nnibabel/externals/tests/test_six.py:        from six import BytesIO\r\nnibabel/tests/test_analyze.py:from six import BytesIO, StringIO\r\nnibabel/tests/test_batteryrunners.py:from six import StringIO\r\nnibabel/tests/test_wrapstruct.py:from six import StringIO\r\n```\r\n\r\nIf someone decides to tackle those last few imports, at least the scope will be clearer.\r\n\r\nSquashing..."}}
{"actor":{"display_login":"effigies"}}