{"action":"created","comment":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/23238482","id":23238482,"diff_hunk":"@@ -96,26 +96,26 @@ def _get_json_and_transform(direction):\n \n     dirname = os.path.dirname(os.path.abspath(__file__))\n     dirname = os.path.join(dirname, 'glass_brain_files')\n-    direction_to_filename = {\n-        direction: os.path.join(\n+    direction_to_filename = dict([\n+        (_direction, os.path.join(","path":"nilearn/plotting/glass_brain.py","position":16,"original_position":16,"commit_id":"afcbb9c0b89c4788c9294366fd0265de8b4ca61e","original_commit_id":"afcbb9c0b89c4788c9294366fd0265de8b4ca61e","user":{"login":"lesteve","id":1680079,"avatar_url":"https://avatars.githubusercontent.com/u/1680079?v=3","gravatar_id":"","url":"https://api.github.com/users/lesteve","html_url":"https://github.com/lesteve","followers_url":"https://api.github.com/users/lesteve/followers","following_url":"https://api.github.com/users/lesteve/following{/other_user}","gists_url":"https://api.github.com/users/lesteve/gists{/gist_id}","starred_url":"https://api.github.com/users/lesteve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesteve/subscriptions","organizations_url":"https://api.github.com/users/lesteve/orgs","repos_url":"https://api.github.com/users/lesteve/repos","events_url":"https://api.github.com/users/lesteve/events{/privacy}","received_events_url":"https://api.github.com/users/lesteve/received_events","type":"User","site_admin":false},"body":"Nice catch, it took me a little while to figure out why you were renaming the list comprehension variables ... (answer: shadowing the _get_json_and_transform 'direction' parameter)","created_at":"2015-01-20T17:25:49Z","updated_at":"2015-01-20T17:25:49Z","html_url":"https://github.com/nilearn/nilearn/pull/359#discussion_r23238482","pull_request_url":"https://api.github.com/repos/nilearn/nilearn/pulls/359","_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/23238482"},"html":{"href":"https://github.com/nilearn/nilearn/pull/359#discussion_r23238482"},"pull_request":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/359"}}},"pull_request":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/359","id":27686254,"html_url":"https://github.com/nilearn/nilearn/pull/359","diff_url":"https://github.com/nilearn/nilearn/pull/359.diff","patch_url":"https://github.com/nilearn/nilearn/pull/359.patch","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/359","number":359,"state":"open","locked":false,"title":"Enable Python 2.6 support","user":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"body":"There were a few issues preventing the setup script, code, and tests from running in Python 2.6:\r\n* Trailing whitespace in `version.py` led to a setup syntax error.\r\n* `\"format_str{}\".format(str)` is illegal in Python 2.6; use `\"format_str{0}\".format(str)`\r\n* Dictionary comprehensions are NYI in Python 2.6; use `dict([list_comprehension])`\r\n* Many `assert_X` functions are unavailable in Python 2.6; convert the few we were using to `assert_true`\r\n* Context managers for `ZipFile`, `TarFile` don't exist in Python 2.6; wrap with `contextlib`\r\n* Context manager for `nose.assert_raises` doesn't exist in Python 2.6; use our custom `assert_raises_regexp`, which was more appropriate anyway (since we wanted to check the error message of the error anyway).\r\n\r\nI've also changed the `.travis.yml` file to contain a flow like `scikit-learn`.  The following three scenarios are now enabled:\r\n* Python 2.6 under Anaconda install\r\n* Python 2.7 using system packages\r\n* Python 2.7 under neurodebian.\r\n\r\nTests for all three scenarios are working (or were working; seems the PGP key for neurodebian is choking at this moment, out of the blue)...","created_at":"2015-01-20T15:35:50Z","updated_at":"2015-01-20T17:25:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8755a1864005cee8c6d124313f31727d107d8ab8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nilearn/nilearn/pulls/359/commits","review_comments_url":"https://api.github.com/repos/nilearn/nilearn/pulls/359/comments","review_comment_url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/359/comments","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/afcbb9c0b89c4788c9294366fd0265de8b4ca61e","head":{"label":"bcipolli:python-2.6","ref":"python-2.6","sha":"afcbb9c0b89c4788c9294366fd0265de8b4ca61e","user":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"repo":{"id":28233031,"name":"nilearn","full_name":"bcipolli/nilearn","owner":{"login":"bcipolli","id":4072455,"avatar_url":"https://avatars.githubusercontent.com/u/4072455?v=3","gravatar_id":"","url":"https://api.github.com/users/bcipolli","html_url":"https://github.com/bcipolli","followers_url":"https://api.github.com/users/bcipolli/followers","following_url":"https://api.github.com/users/bcipolli/following{/other_user}","gists_url":"https://api.github.com/users/bcipolli/gists{/gist_id}","starred_url":"https://api.github.com/users/bcipolli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcipolli/subscriptions","organizations_url":"https://api.github.com/users/bcipolli/orgs","repos_url":"https://api.github.com/users/bcipolli/repos","events_url":"https://api.github.com/users/bcipolli/events{/privacy}","received_events_url":"https://api.github.com/users/bcipolli/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bcipolli/nilearn","description":"Machine learning for NeuroImaging in Python","fork":true,"url":"https://api.github.com/repos/bcipolli/nilearn","forks_url":"https://api.github.com/repos/bcipolli/nilearn/forks","keys_url":"https://api.github.com/repos/bcipolli/nilearn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bcipolli/nilearn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bcipolli/nilearn/teams","hooks_url":"https://api.github.com/repos/bcipolli/nilearn/hooks","issue_events_url":"https://api.github.com/repos/bcipolli/nilearn/issues/events{/number}","events_url":"https://api.github.com/repos/bcipolli/nilearn/events","assignees_url":"https://api.github.com/repos/bcipolli/nilearn/assignees{/user}","branches_url":"https://api.github.com/repos/bcipolli/nilearn/branches{/branch}","tags_url":"https://api.github.com/repos/bcipolli/nilearn/tags","blobs_url":"https://api.github.com/repos/bcipolli/nilearn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bcipolli/nilearn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bcipolli/nilearn/git/refs{/sha}","trees_url":"https://api.github.com/repos/bcipolli/nilearn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bcipolli/nilearn/statuses/{sha}","languages_url":"https://api.github.com/repos/bcipolli/nilearn/languages","stargazers_url":"https://api.github.com/repos/bcipolli/nilearn/stargazers","contributors_url":"https://api.github.com/repos/bcipolli/nilearn/contributors","subscribers_url":"https://api.github.com/repos/bcipolli/nilearn/subscribers","subscription_url":"https://api.github.com/repos/bcipolli/nilearn/subscription","commits_url":"https://api.github.com/repos/bcipolli/nilearn/commits{/sha}","git_commits_url":"https://api.github.com/repos/bcipolli/nilearn/git/commits{/sha}","comments_url":"https://api.github.com/repos/bcipolli/nilearn/comments{/number}","issue_comment_url":"https://api.github.com/repos/bcipolli/nilearn/issues/comments/{number}","contents_url":"https://api.github.com/repos/bcipolli/nilearn/contents/{+path}","compare_url":"https://api.github.com/repos/bcipolli/nilearn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bcipolli/nilearn/merges","archive_url":"https://api.github.com/repos/bcipolli/nilearn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bcipolli/nilearn/downloads","issues_url":"https://api.github.com/repos/bcipolli/nilearn/issues{/number}","pulls_url":"https://api.github.com/repos/bcipolli/nilearn/pulls{/number}","milestones_url":"https://api.github.com/repos/bcipolli/nilearn/milestones{/number}","notifications_url":"https://api.github.com/repos/bcipolli/nilearn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bcipolli/nilearn/labels{/name}","releases_url":"https://api.github.com/repos/bcipolli/nilearn/releases{/id}","created_at":"2014-12-19T14:43:35Z","updated_at":"2015-01-20T14:44:19Z","pushed_at":"2015-01-20T15:10:45Z","git_url":"git://github.com/bcipolli/nilearn.git","ssh_url":"git@github.com:bcipolli/nilearn.git","clone_url":"https://github.com/bcipolli/nilearn.git","svn_url":"https://github.com/bcipolli/nilearn","homepage":"http://nilearn.github.io","size":5967,"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":"nilearn:master","ref":"master","sha":"17ef73eac8a81b08669ca3681f0addd44d1183ac","user":{"login":"nilearn","id":4646912,"avatar_url":"https://avatars.githubusercontent.com/u/4646912?v=3","gravatar_id":"","url":"https://api.github.com/users/nilearn","html_url":"https://github.com/nilearn","followers_url":"https://api.github.com/users/nilearn/followers","following_url":"https://api.github.com/users/nilearn/following{/other_user}","gists_url":"https://api.github.com/users/nilearn/gists{/gist_id}","starred_url":"https://api.github.com/users/nilearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilearn/subscriptions","organizations_url":"https://api.github.com/users/nilearn/orgs","repos_url":"https://api.github.com/users/nilearn/repos","events_url":"https://api.github.com/users/nilearn/events{/privacy}","received_events_url":"https://api.github.com/users/nilearn/received_events","type":"Organization","site_admin":false},"repo":{"id":1235740,"name":"nilearn","full_name":"nilearn/nilearn","owner":{"login":"nilearn","id":4646912,"avatar_url":"https://avatars.githubusercontent.com/u/4646912?v=3","gravatar_id":"","url":"https://api.github.com/users/nilearn","html_url":"https://github.com/nilearn","followers_url":"https://api.github.com/users/nilearn/followers","following_url":"https://api.github.com/users/nilearn/following{/other_user}","gists_url":"https://api.github.com/users/nilearn/gists{/gist_id}","starred_url":"https://api.github.com/users/nilearn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilearn/subscriptions","organizations_url":"https://api.github.com/users/nilearn/orgs","repos_url":"https://api.github.com/users/nilearn/repos","events_url":"https://api.github.com/users/nilearn/events{/privacy}","received_events_url":"https://api.github.com/users/nilearn/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nilearn/nilearn","description":"Machine learning for NeuroImaging in Python","fork":false,"url":"https://api.github.com/repos/nilearn/nilearn","forks_url":"https://api.github.com/repos/nilearn/nilearn/forks","keys_url":"https://api.github.com/repos/nilearn/nilearn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nilearn/nilearn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nilearn/nilearn/teams","hooks_url":"https://api.github.com/repos/nilearn/nilearn/hooks","issue_events_url":"https://api.github.com/repos/nilearn/nilearn/issues/events{/number}","events_url":"https://api.github.com/repos/nilearn/nilearn/events","assignees_url":"https://api.github.com/repos/nilearn/nilearn/assignees{/user}","branches_url":"https://api.github.com/repos/nilearn/nilearn/branches{/branch}","tags_url":"https://api.github.com/repos/nilearn/nilearn/tags","blobs_url":"https://api.github.com/repos/nilearn/nilearn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nilearn/nilearn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nilearn/nilearn/git/refs{/sha}","trees_url":"https://api.github.com/repos/nilearn/nilearn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/{sha}","languages_url":"https://api.github.com/repos/nilearn/nilearn/languages","stargazers_url":"https://api.github.com/repos/nilearn/nilearn/stargazers","contributors_url":"https://api.github.com/repos/nilearn/nilearn/contributors","subscribers_url":"https://api.github.com/repos/nilearn/nilearn/subscribers","subscription_url":"https://api.github.com/repos/nilearn/nilearn/subscription","commits_url":"https://api.github.com/repos/nilearn/nilearn/commits{/sha}","git_commits_url":"https://api.github.com/repos/nilearn/nilearn/git/commits{/sha}","comments_url":"https://api.github.com/repos/nilearn/nilearn/comments{/number}","issue_comment_url":"https://api.github.com/repos/nilearn/nilearn/issues/comments/{number}","contents_url":"https://api.github.com/repos/nilearn/nilearn/contents/{+path}","compare_url":"https://api.github.com/repos/nilearn/nilearn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nilearn/nilearn/merges","archive_url":"https://api.github.com/repos/nilearn/nilearn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nilearn/nilearn/downloads","issues_url":"https://api.github.com/repos/nilearn/nilearn/issues{/number}","pulls_url":"https://api.github.com/repos/nilearn/nilearn/pulls{/number}","milestones_url":"https://api.github.com/repos/nilearn/nilearn/milestones{/number}","notifications_url":"https://api.github.com/repos/nilearn/nilearn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nilearn/nilearn/labels{/name}","releases_url":"https://api.github.com/repos/nilearn/nilearn/releases{/id}","created_at":"2011-01-09T19:02:23Z","updated_at":"2015-01-20T12:31:21Z","pushed_at":"2015-01-20T12:31:21Z","git_url":"git://github.com/nilearn/nilearn.git","ssh_url":"git@github.com:nilearn/nilearn.git","clone_url":"https://github.com/nilearn/nilearn.git","svn_url":"https://github.com/nilearn/nilearn","homepage":"http://nilearn.github.io","size":9614,"stargazers_count":67,"watchers_count":67,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":52,"mirror_url":null,"open_issues_count":52,"forks":52,"open_issues":52,"watchers":67,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/359"},"html":{"href":"https://github.com/nilearn/nilearn/pull/359"},"issue":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/359"},"comments":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/359/comments"},"review_comments":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/359/comments"},"review_comment":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/359/commits"},"statuses":{"href":"https://api.github.com/repos/nilearn/nilearn/statuses/afcbb9c0b89c4788c9294366fd0265de8b4ca61e"}}}}