{"action":"created","comment":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/comments/51294310","id":51294310,"diff_hunk":"@@ -257,6 +257,20 @@ def openany(datasource, mode='r', reset=True):\n         stream.close()\n \n \n+def _bz2_open_py2(filename, mode):","path":"package/MDAnalysis/lib/util.py","position":4,"original_position":4,"commit_id":"4c8883155e009f1db8580edfe5ad44c2fa228e0a","original_commit_id":"4c8883155e009f1db8580edfe5ad44c2fa228e0a","user":{"login":"richardjgowers","id":9249543,"avatar_url":"https://avatars.githubusercontent.com/u/9249543?v=3","gravatar_id":"","url":"https://api.github.com/users/richardjgowers","html_url":"https://github.com/richardjgowers","followers_url":"https://api.github.com/users/richardjgowers/followers","following_url":"https://api.github.com/users/richardjgowers/following{/other_user}","gists_url":"https://api.github.com/users/richardjgowers/gists{/gist_id}","starred_url":"https://api.github.com/users/richardjgowers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardjgowers/subscriptions","organizations_url":"https://api.github.com/users/richardjgowers/orgs","repos_url":"https://api.github.com/users/richardjgowers/repos","events_url":"https://api.github.com/users/richardjgowers/events{/privacy}","received_events_url":"https://api.github.com/users/richardjgowers/received_events","type":"User","site_admin":false},"body":"Maybe put the def inside the except branch below?","created_at":"2016-01-29T18:14:33Z","updated_at":"2016-01-29T18:14:33Z","html_url":"https://github.com/MDAnalysis/mdanalysis/pull/683#discussion_r51294310","pull_request_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683","_links":{"self":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/comments/51294310"},"html":{"href":"https://github.com/MDAnalysis/mdanalysis/pull/683#discussion_r51294310"},"pull_request":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683"}}},"pull_request":{"url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683","id":57678636,"html_url":"https://github.com/MDAnalysis/mdanalysis/pull/683","diff_url":"https://github.com/MDAnalysis/mdanalysis/pull/683.diff","patch_url":"https://github.com/MDAnalysis/mdanalysis/pull/683.patch","issue_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/683","number":683,"state":"open","locked":false,"title":"Issue $260 More python 3 compatibility fix","user":{"login":"jbarnoud","id":1382074,"avatar_url":"https://avatars.githubusercontent.com/u/1382074?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarnoud","html_url":"https://github.com/jbarnoud","followers_url":"https://api.github.com/users/jbarnoud/followers","following_url":"https://api.github.com/users/jbarnoud/following{/other_user}","gists_url":"https://api.github.com/users/jbarnoud/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarnoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarnoud/subscriptions","organizations_url":"https://api.github.com/users/jbarnoud/orgs","repos_url":"https://api.github.com/users/jbarnoud/repos","events_url":"https://api.github.com/users/jbarnoud/events{/privacy}","received_events_url":"https://api.github.com/users/jbarnoud/received_events","type":"User","site_admin":false},"body":"Mostly bytes/strings issues\r\n\r\nMost parser are now python 3 compatible. The main test suites that still  fail are `test_streamio.py` and some analyses tests. They can potentially reveal hidden ugly stuff...\r\n\r\nWhen we open a file (with `open` or `anyopen`), we must specify if it is a binary or a text file as they are handled in a different way in python 3.","created_at":"2016-01-29T17:40:48Z","updated_at":"2016-01-29T18:14:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f2577b445a615e9fe182bea00df3d3bbafdf9cda","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683/commits","review_comments_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683/comments","review_comment_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/683/comments","statuses_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/statuses/4c8883155e009f1db8580edfe5ad44c2fa228e0a","head":{"label":"jbarnoud:issue-260-more-fix","ref":"issue-260-more-fix","sha":"4c8883155e009f1db8580edfe5ad44c2fa228e0a","user":{"login":"jbarnoud","id":1382074,"avatar_url":"https://avatars.githubusercontent.com/u/1382074?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarnoud","html_url":"https://github.com/jbarnoud","followers_url":"https://api.github.com/users/jbarnoud/followers","following_url":"https://api.github.com/users/jbarnoud/following{/other_user}","gists_url":"https://api.github.com/users/jbarnoud/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarnoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarnoud/subscriptions","organizations_url":"https://api.github.com/users/jbarnoud/orgs","repos_url":"https://api.github.com/users/jbarnoud/repos","events_url":"https://api.github.com/users/jbarnoud/events{/privacy}","received_events_url":"https://api.github.com/users/jbarnoud/received_events","type":"User","site_admin":false},"repo":{"id":43294106,"name":"mdanalysis","full_name":"jbarnoud/mdanalysis","owner":{"login":"jbarnoud","id":1382074,"avatar_url":"https://avatars.githubusercontent.com/u/1382074?v=3","gravatar_id":"","url":"https://api.github.com/users/jbarnoud","html_url":"https://github.com/jbarnoud","followers_url":"https://api.github.com/users/jbarnoud/followers","following_url":"https://api.github.com/users/jbarnoud/following{/other_user}","gists_url":"https://api.github.com/users/jbarnoud/gists{/gist_id}","starred_url":"https://api.github.com/users/jbarnoud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbarnoud/subscriptions","organizations_url":"https://api.github.com/users/jbarnoud/orgs","repos_url":"https://api.github.com/users/jbarnoud/repos","events_url":"https://api.github.com/users/jbarnoud/events{/privacy}","received_events_url":"https://api.github.com/users/jbarnoud/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jbarnoud/mdanalysis","description":"MDAnalysis is a Python library to analyze molecular dynamics trajectories.","fork":true,"url":"https://api.github.com/repos/jbarnoud/mdanalysis","forks_url":"https://api.github.com/repos/jbarnoud/mdanalysis/forks","keys_url":"https://api.github.com/repos/jbarnoud/mdanalysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jbarnoud/mdanalysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jbarnoud/mdanalysis/teams","hooks_url":"https://api.github.com/repos/jbarnoud/mdanalysis/hooks","issue_events_url":"https://api.github.com/repos/jbarnoud/mdanalysis/issues/events{/number}","events_url":"https://api.github.com/repos/jbarnoud/mdanalysis/events","assignees_url":"https://api.github.com/repos/jbarnoud/mdanalysis/assignees{/user}","branches_url":"https://api.github.com/repos/jbarnoud/mdanalysis/branches{/branch}","tags_url":"https://api.github.com/repos/jbarnoud/mdanalysis/tags","blobs_url":"https://api.github.com/repos/jbarnoud/mdanalysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jbarnoud/mdanalysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jbarnoud/mdanalysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/jbarnoud/mdanalysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jbarnoud/mdanalysis/statuses/{sha}","languages_url":"https://api.github.com/repos/jbarnoud/mdanalysis/languages","stargazers_url":"https://api.github.com/repos/jbarnoud/mdanalysis/stargazers","contributors_url":"https://api.github.com/repos/jbarnoud/mdanalysis/contributors","subscribers_url":"https://api.github.com/repos/jbarnoud/mdanalysis/subscribers","subscription_url":"https://api.github.com/repos/jbarnoud/mdanalysis/subscription","commits_url":"https://api.github.com/repos/jbarnoud/mdanalysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/jbarnoud/mdanalysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/jbarnoud/mdanalysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/jbarnoud/mdanalysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/jbarnoud/mdanalysis/contents/{+path}","compare_url":"https://api.github.com/repos/jbarnoud/mdanalysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jbarnoud/mdanalysis/merges","archive_url":"https://api.github.com/repos/jbarnoud/mdanalysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jbarnoud/mdanalysis/downloads","issues_url":"https://api.github.com/repos/jbarnoud/mdanalysis/issues{/number}","pulls_url":"https://api.github.com/repos/jbarnoud/mdanalysis/pulls{/number}","milestones_url":"https://api.github.com/repos/jbarnoud/mdanalysis/milestones{/number}","notifications_url":"https://api.github.com/repos/jbarnoud/mdanalysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jbarnoud/mdanalysis/labels{/name}","releases_url":"https://api.github.com/repos/jbarnoud/mdanalysis/releases{/id}","deployments_url":"https://api.github.com/repos/jbarnoud/mdanalysis/deployments","created_at":"2015-09-28T10:12:35Z","updated_at":"2016-01-15T18:02:06Z","pushed_at":"2016-01-29T17:37:03Z","git_url":"git://github.com/jbarnoud/mdanalysis.git","ssh_url":"git@github.com:jbarnoud/mdanalysis.git","clone_url":"https://github.com/jbarnoud/mdanalysis.git","svn_url":"https://github.com/jbarnoud/mdanalysis","homepage":"http://www.mdanalysis.org","size":182568,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":false,"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":"develop"}},"base":{"label":"MDAnalysis:develop","ref":"develop","sha":"481b5608738455450b743c1cf7ddb7f263f32b77","user":{"login":"MDAnalysis","id":11445951,"avatar_url":"https://avatars.githubusercontent.com/u/11445951?v=3","gravatar_id":"","url":"https://api.github.com/users/MDAnalysis","html_url":"https://github.com/MDAnalysis","followers_url":"https://api.github.com/users/MDAnalysis/followers","following_url":"https://api.github.com/users/MDAnalysis/following{/other_user}","gists_url":"https://api.github.com/users/MDAnalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/MDAnalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDAnalysis/subscriptions","organizations_url":"https://api.github.com/users/MDAnalysis/orgs","repos_url":"https://api.github.com/users/MDAnalysis/repos","events_url":"https://api.github.com/users/MDAnalysis/events{/privacy}","received_events_url":"https://api.github.com/users/MDAnalysis/received_events","type":"Organization","site_admin":false},"repo":{"id":33389183,"name":"mdanalysis","full_name":"MDAnalysis/mdanalysis","owner":{"login":"MDAnalysis","id":11445951,"avatar_url":"https://avatars.githubusercontent.com/u/11445951?v=3","gravatar_id":"","url":"https://api.github.com/users/MDAnalysis","html_url":"https://github.com/MDAnalysis","followers_url":"https://api.github.com/users/MDAnalysis/followers","following_url":"https://api.github.com/users/MDAnalysis/following{/other_user}","gists_url":"https://api.github.com/users/MDAnalysis/gists{/gist_id}","starred_url":"https://api.github.com/users/MDAnalysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MDAnalysis/subscriptions","organizations_url":"https://api.github.com/users/MDAnalysis/orgs","repos_url":"https://api.github.com/users/MDAnalysis/repos","events_url":"https://api.github.com/users/MDAnalysis/events{/privacy}","received_events_url":"https://api.github.com/users/MDAnalysis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MDAnalysis/mdanalysis","description":"MDAnalysis is a Python library to analyze molecular dynamics trajectories.","fork":false,"url":"https://api.github.com/repos/MDAnalysis/mdanalysis","forks_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/forks","keys_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/teams","hooks_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/hooks","issue_events_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/events{/number}","events_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/events","assignees_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/assignees{/user}","branches_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/branches{/branch}","tags_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/tags","blobs_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/git/refs{/sha}","trees_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/statuses/{sha}","languages_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/languages","stargazers_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/stargazers","contributors_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/contributors","subscribers_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/subscribers","subscription_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/subscription","commits_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/commits{/sha}","git_commits_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/git/commits{/sha}","comments_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/comments{/number}","issue_comment_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/comments{/number}","contents_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/contents/{+path}","compare_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/merges","archive_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/downloads","issues_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues{/number}","pulls_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls{/number}","milestones_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/milestones{/number}","notifications_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/labels{/name}","releases_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/releases{/id}","deployments_url":"https://api.github.com/repos/MDAnalysis/mdanalysis/deployments","created_at":"2015-04-04T00:39:41Z","updated_at":"2016-01-29T11:21:34Z","pushed_at":"2016-01-29T17:40:48Z","git_url":"git://github.com/MDAnalysis/mdanalysis.git","ssh_url":"git@github.com:MDAnalysis/mdanalysis.git","clone_url":"https://github.com/MDAnalysis/mdanalysis.git","svn_url":"https://github.com/MDAnalysis/mdanalysis","homepage":"http://www.mdanalysis.org","size":241733,"stargazers_count":53,"watchers_count":53,"language":"Python","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":33,"mirror_url":null,"open_issues_count":83,"forks":33,"open_issues":83,"watchers":53,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683"},"html":{"href":"https://github.com/MDAnalysis/mdanalysis/pull/683"},"issue":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/683"},"comments":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/issues/683/comments"},"review_comments":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683/comments"},"review_comment":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/pulls/683/commits"},"statuses":{"href":"https://api.github.com/repos/MDAnalysis/mdanalysis/statuses/4c8883155e009f1db8580edfe5ad44c2fa228e0a"}}}}