{"action":"closed","number":1132,"pull_request":{"url":"https://api.github.com/repos/biocore/scikit-bio/pulls/1132","id":45116926,"html_url":"https://github.com/biocore/scikit-bio/pull/1132","diff_url":"https://github.com/biocore/scikit-bio/pull/1132.diff","patch_url":"https://github.com/biocore/scikit-bio/pull/1132.patch","issue_url":"https://api.github.com/repos/biocore/scikit-bio/issues/1132","number":1132,"state":"closed","locked":false,"title":"ENH: better error message for PY2 list iosource","user":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"body":"fixes #1103 \r\n\r\nError example:\r\n```python\r\nIn [1]: from skbio import DNA\r\n\r\nIn [2]: DNA.read(['abc'])\r\n---------------------------------------------------------------------------\r\nIOSourceError                             Traceback (most recent call last)\r\n<ipython-input-2-886913a61d43> in <module>()\r\n----> 1 DNA.read(['abc'])\r\n\r\n/home/evan/biocore/scikit-bio/skbio/io/registry.pyc in read(cls, file, format, **kwargs)\r\n    622         @classmethod\r\n    623         def read(cls, file, format=None, **kwargs):\r\n--> 624             return registry.read(file, into=cls, format=format, **kwargs)\r\n    625 \r\n    626         imports = registry._import_paths(read_formats)\r\n\r\n/home/evan/biocore/scikit-bio/skbio/io/registry.pyc in read(self, file, format, into, verify, **kwargs)\r\n    495             return (x for x in itertools.chain([next(gen)], gen))\r\n    496         else:\r\n--> 497             return self._read_ret(file, format, into, verify, kwargs)\r\n    498 \r\n    499     def _read_ret(self, file, fmt, into, verify, kwargs):\r\n\r\n/home/evan/biocore/scikit-bio/skbio/io/registry.pyc in _read_ret(self, file, fmt, into, verify, kwargs)\r\n    499     def _read_ret(self, file, fmt, into, verify, kwargs):\r\n    500         io_kwargs = self._find_io_kwargs(kwargs)\r\n--> 501         with _resolve_file(file, **io_kwargs) as (file, _, _):\r\n    502             reader, kwargs = self._init_reader(file, fmt, into, verify, kwargs,\r\n    503                                                io_kwargs)\r\n\r\n/home/evan/.conda/envs/2skbio/lib/python2.7/site-packages/contextlib2.pyc in __enter__(self)\r\n     47     def __enter__(self):\r\n     48         try:\r\n---> 49             return next(self.gen)\r\n     50         except StopIteration:\r\n     51             raise RuntimeError(\"generator didn't yield\")\r\n\r\n/home/evan/biocore/scikit-bio/skbio/io/util.pyc in _resolve_file(file, **kwargs)\r\n    202 @contextmanager\r\n    203 def _resolve_file(file, **kwargs):\r\n--> 204     file, source, is_binary_file = _resolve(file, **kwargs)\r\n    205     try:\r\n    206         yield file, source, is_binary_file\r\n\r\n/home/evan/biocore/scikit-bio/skbio/io/util.pyc in _resolve(file, mode, encoding, errors, newline, compression, compresslevel)\r\n     56     for source_handler in get_io_sources():\r\n     57         source = source_handler(file, arguments)\r\n---> 58         if mode == 'r' and source.can_read():\r\n     59             newfile = source.get_reader()\r\n     60             break\r\n\r\n/home/evan/biocore/scikit-bio/skbio/io/_iosources.pyc in can_read(self)\r\n    179                         \"Could not open source: %r (mode: %r).\\n Prepend a \"\r\n    180                         r\"`u` to the strings (e.g. [u'line1\\n', u'line2\\n'])\" %\r\n--> 181                         (self.file, self.options['mode']))\r\n    182 \r\n    183                 raise IOSourceError(\r\n\r\nIOSourceError: Could not open source: ['abc'] (mode: 'r').\r\n Prepend a `u` to the strings (e.g. [u'line1\\n', u'line2\\n'])\r\n```","created_at":"2015-09-15T23:56:05Z","updated_at":"2015-10-02T17:00:51Z","closed_at":"2015-10-02T17:00:51Z","merged_at":"2015-10-02T17:00:51Z","merge_commit_sha":"93669be3076f448e1cda89c5a1a5721ba66e30db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/biocore/scikit-bio/pulls/1132/commits","review_comments_url":"https://api.github.com/repos/biocore/scikit-bio/pulls/1132/comments","review_comment_url":"https://api.github.com/repos/biocore/scikit-bio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/biocore/scikit-bio/issues/1132/comments","statuses_url":"https://api.github.com/repos/biocore/scikit-bio/statuses/8b8af9e791d9e5292fd39cc1a76d515fa6809d64","head":{"label":"ebolyen:issue-1103","ref":"issue-1103","sha":"8b8af9e791d9e5292fd39cc1a76d515fa6809d64","user":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"repo":{"id":21666618,"name":"scikit-bio","full_name":"ebolyen/scikit-bio","owner":{"login":"ebolyen","id":3976804,"avatar_url":"https://avatars.githubusercontent.com/u/3976804?v=3","gravatar_id":"","url":"https://api.github.com/users/ebolyen","html_url":"https://github.com/ebolyen","followers_url":"https://api.github.com/users/ebolyen/followers","following_url":"https://api.github.com/users/ebolyen/following{/other_user}","gists_url":"https://api.github.com/users/ebolyen/gists{/gist_id}","starred_url":"https://api.github.com/users/ebolyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ebolyen/subscriptions","organizations_url":"https://api.github.com/users/ebolyen/orgs","repos_url":"https://api.github.com/users/ebolyen/repos","events_url":"https://api.github.com/users/ebolyen/events{/privacy}","received_events_url":"https://api.github.com/users/ebolyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ebolyen/scikit-bio","description":"Core objects, functions and statistics for working with biological data in Python.","fork":true,"url":"https://api.github.com/repos/ebolyen/scikit-bio","forks_url":"https://api.github.com/repos/ebolyen/scikit-bio/forks","keys_url":"https://api.github.com/repos/ebolyen/scikit-bio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ebolyen/scikit-bio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ebolyen/scikit-bio/teams","hooks_url":"https://api.github.com/repos/ebolyen/scikit-bio/hooks","issue_events_url":"https://api.github.com/repos/ebolyen/scikit-bio/issues/events{/number}","events_url":"https://api.github.com/repos/ebolyen/scikit-bio/events","assignees_url":"https://api.github.com/repos/ebolyen/scikit-bio/assignees{/user}","branches_url":"https://api.github.com/repos/ebolyen/scikit-bio/branches{/branch}","tags_url":"https://api.github.com/repos/ebolyen/scikit-bio/tags","blobs_url":"https://api.github.com/repos/ebolyen/scikit-bio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ebolyen/scikit-bio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ebolyen/scikit-bio/git/refs{/sha}","trees_url":"https://api.github.com/repos/ebolyen/scikit-bio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ebolyen/scikit-bio/statuses/{sha}","languages_url":"https://api.github.com/repos/ebolyen/scikit-bio/languages","stargazers_url":"https://api.github.com/repos/ebolyen/scikit-bio/stargazers","contributors_url":"https://api.github.com/repos/ebolyen/scikit-bio/contributors","subscribers_url":"https://api.github.com/repos/ebolyen/scikit-bio/subscribers","subscription_url":"https://api.github.com/repos/ebolyen/scikit-bio/subscription","commits_url":"https://api.github.com/repos/ebolyen/scikit-bio/commits{/sha}","git_commits_url":"https://api.github.com/repos/ebolyen/scikit-bio/git/commits{/sha}","comments_url":"https://api.github.com/repos/ebolyen/scikit-bio/comments{/number}","issue_comment_url":"https://api.github.com/repos/ebolyen/scikit-bio/issues/comments{/number}","contents_url":"https://api.github.com/repos/ebolyen/scikit-bio/contents/{+path}","compare_url":"https://api.github.com/repos/ebolyen/scikit-bio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ebolyen/scikit-bio/merges","archive_url":"https://api.github.com/repos/ebolyen/scikit-bio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ebolyen/scikit-bio/downloads","issues_url":"https://api.github.com/repos/ebolyen/scikit-bio/issues{/number}","pulls_url":"https://api.github.com/repos/ebolyen/scikit-bio/pulls{/number}","milestones_url":"https://api.github.com/repos/ebolyen/scikit-bio/milestones{/number}","notifications_url":"https://api.github.com/repos/ebolyen/scikit-bio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ebolyen/scikit-bio/labels{/name}","releases_url":"https://api.github.com/repos/ebolyen/scikit-bio/releases{/id}","created_at":"2014-07-09T19:51:32Z","updated_at":"2015-03-18T21:22:15Z","pushed_at":"2015-10-02T16:54:34Z","git_url":"git://github.com/ebolyen/scikit-bio.git","ssh_url":"git@github.com:ebolyen/scikit-bio.git","clone_url":"https://github.com/ebolyen/scikit-bio.git","svn_url":"https://github.com/ebolyen/scikit-bio","homepage":"http://scikit-bio.org","size":37996,"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":"biocore:master","ref":"master","sha":"5aa3f37ce8c76fc5159f5e7f539573bb41dd99ed","user":{"login":"biocore","id":6241857,"avatar_url":"https://avatars.githubusercontent.com/u/6241857?v=3","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"repo":{"id":15168264,"name":"scikit-bio","full_name":"biocore/scikit-bio","owner":{"login":"biocore","id":6241857,"avatar_url":"https://avatars.githubusercontent.com/u/6241857?v=3","gravatar_id":"","url":"https://api.github.com/users/biocore","html_url":"https://github.com/biocore","followers_url":"https://api.github.com/users/biocore/followers","following_url":"https://api.github.com/users/biocore/following{/other_user}","gists_url":"https://api.github.com/users/biocore/gists{/gist_id}","starred_url":"https://api.github.com/users/biocore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biocore/subscriptions","organizations_url":"https://api.github.com/users/biocore/orgs","repos_url":"https://api.github.com/users/biocore/repos","events_url":"https://api.github.com/users/biocore/events{/privacy}","received_events_url":"https://api.github.com/users/biocore/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/biocore/scikit-bio","description":"scikit-bio is an open-source, BSD-licensed, Python package providing data structures, algorithms, and educational resources for bioinformatics.","fork":false,"url":"https://api.github.com/repos/biocore/scikit-bio","forks_url":"https://api.github.com/repos/biocore/scikit-bio/forks","keys_url":"https://api.github.com/repos/biocore/scikit-bio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/biocore/scikit-bio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/biocore/scikit-bio/teams","hooks_url":"https://api.github.com/repos/biocore/scikit-bio/hooks","issue_events_url":"https://api.github.com/repos/biocore/scikit-bio/issues/events{/number}","events_url":"https://api.github.com/repos/biocore/scikit-bio/events","assignees_url":"https://api.github.com/repos/biocore/scikit-bio/assignees{/user}","branches_url":"https://api.github.com/repos/biocore/scikit-bio/branches{/branch}","tags_url":"https://api.github.com/repos/biocore/scikit-bio/tags","blobs_url":"https://api.github.com/repos/biocore/scikit-bio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/biocore/scikit-bio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/biocore/scikit-bio/git/refs{/sha}","trees_url":"https://api.github.com/repos/biocore/scikit-bio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/biocore/scikit-bio/statuses/{sha}","languages_url":"https://api.github.com/repos/biocore/scikit-bio/languages","stargazers_url":"https://api.github.com/repos/biocore/scikit-bio/stargazers","contributors_url":"https://api.github.com/repos/biocore/scikit-bio/contributors","subscribers_url":"https://api.github.com/repos/biocore/scikit-bio/subscribers","subscription_url":"https://api.github.com/repos/biocore/scikit-bio/subscription","commits_url":"https://api.github.com/repos/biocore/scikit-bio/commits{/sha}","git_commits_url":"https://api.github.com/repos/biocore/scikit-bio/git/commits{/sha}","comments_url":"https://api.github.com/repos/biocore/scikit-bio/comments{/number}","issue_comment_url":"https://api.github.com/repos/biocore/scikit-bio/issues/comments{/number}","contents_url":"https://api.github.com/repos/biocore/scikit-bio/contents/{+path}","compare_url":"https://api.github.com/repos/biocore/scikit-bio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/biocore/scikit-bio/merges","archive_url":"https://api.github.com/repos/biocore/scikit-bio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/biocore/scikit-bio/downloads","issues_url":"https://api.github.com/repos/biocore/scikit-bio/issues{/number}","pulls_url":"https://api.github.com/repos/biocore/scikit-bio/pulls{/number}","milestones_url":"https://api.github.com/repos/biocore/scikit-bio/milestones{/number}","notifications_url":"https://api.github.com/repos/biocore/scikit-bio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/biocore/scikit-bio/labels{/name}","releases_url":"https://api.github.com/repos/biocore/scikit-bio/releases{/id}","created_at":"2013-12-13T16:24:41Z","updated_at":"2015-09-30T19:09:12Z","pushed_at":"2015-10-02T17:00:51Z","git_url":"git://github.com/biocore/scikit-bio.git","ssh_url":"git@github.com:biocore/scikit-bio.git","clone_url":"https://github.com/biocore/scikit-bio.git","svn_url":"https://github.com/biocore/scikit-bio","homepage":"http://scikit-bio.org","size":41918,"stargazers_count":159,"watchers_count":159,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":86,"mirror_url":null,"open_issues_count":160,"forks":86,"open_issues":160,"watchers":159,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/1132"},"html":{"href":"https://github.com/biocore/scikit-bio/pull/1132"},"issue":{"href":"https://api.github.com/repos/biocore/scikit-bio/issues/1132"},"comments":{"href":"https://api.github.com/repos/biocore/scikit-bio/issues/1132/comments"},"review_comments":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/1132/comments"},"review_comment":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/biocore/scikit-bio/pulls/1132/commits"},"statuses":{"href":"https://api.github.com/repos/biocore/scikit-bio/statuses/8b8af9e791d9e5292fd39cc1a76d515fa6809d64"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jairideout","id":1847232,"avatar_url":"https://avatars.githubusercontent.com/u/1847232?v=3","gravatar_id":"","url":"https://api.github.com/users/jairideout","html_url":"https://github.com/jairideout","followers_url":"https://api.github.com/users/jairideout/followers","following_url":"https://api.github.com/users/jairideout/following{/other_user}","gists_url":"https://api.github.com/users/jairideout/gists{/gist_id}","starred_url":"https://api.github.com/users/jairideout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jairideout/subscriptions","organizations_url":"https://api.github.com/users/jairideout/orgs","repos_url":"https://api.github.com/users/jairideout/repos","events_url":"https://api.github.com/users/jairideout/events{/privacy}","received_events_url":"https://api.github.com/users/jairideout/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":2,"additions":22,"deletions":6,"changed_files":2}}