{"action":"created","comment":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/24819691","id":24819691,"diff_hunk":"@@ -71,3 +71,26 @@ def log(msg, verbose=1, object_classes=(BaseEstimator, ),\n             func_name = \"%s.%s\" % (object_self.__class__.__name__, func_name)\n \n         print(\"[{func_name}] {msg}\".format(func_name=func_name, msg=msg))\n+\n+\n+def _compose_err_msg(msg, **kwargs):\n+    \"\"\"Append key-value pairs to msg, for display.\n+\n+    Parameters\n+    ==========\n+    msg: string\n+        arbitrary message\n+    kwargs: dict\n+        arbitrary dictionary\n+\n+    Returns\n+    =======\n+    updated_msg: string\n+        msg, with \"key: value\" appended. Only string values are appended.\n+    \"\"\"\n+    updated_msg = msg\n+    for k, v in kwargs.iteritems():","path":"nilearn/_utils/logger.py","position":22,"original_position":22,"commit_id":"78b264bed87207e85c021544c2b1e8d892995560","original_commit_id":"78b264bed87207e85c021544c2b1e8d892995560","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":"Can you use items rather than iteritems? Just that I have been looking at python3 support lately and that would be one less to fix ...","created_at":"2015-02-17T14:46:43Z","updated_at":"2015-02-17T14:46:43Z","html_url":"https://github.com/nilearn/nilearn/pull/437#discussion_r24819691","pull_request_url":"https://api.github.com/repos/nilearn/nilearn/pulls/437","_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/24819691"},"html":{"href":"https://github.com/nilearn/nilearn/pull/437#discussion_r24819691"},"pull_request":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/437"}}},"pull_request":{"url":"https://api.github.com/repos/nilearn/nilearn/pulls/437","id":29445982,"html_url":"https://github.com/nilearn/nilearn/pull/437","diff_url":"https://github.com/nilearn/nilearn/pull/437.diff","patch_url":"https://github.com/nilearn/nilearn/pull/437.patch","issue_url":"https://api.github.com/repos/nilearn/nilearn/issues/437","number":437,"state":"open","locked":false,"title":"_compose_err_msg() moved to _utils","user":{"login":"banilo","id":3907396,"avatar_url":"https://avatars.githubusercontent.com/u/3907396?v=3","gravatar_id":"","url":"https://api.github.com/users/banilo","html_url":"https://github.com/banilo","followers_url":"https://api.github.com/users/banilo/followers","following_url":"https://api.github.com/users/banilo/following{/other_user}","gists_url":"https://api.github.com/users/banilo/gists{/gist_id}","starred_url":"https://api.github.com/users/banilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banilo/subscriptions","organizations_url":"https://api.github.com/users/banilo/orgs","repos_url":"https://api.github.com/users/banilo/repos","events_url":"https://api.github.com/users/banilo/events{/privacy}","received_events_url":"https://api.github.com/users/banilo/received_events","type":"User","site_admin":false},"body":"try to fix #433 \r\n\r\n_utils.logger seemed like the most reasonable place to put this...","created_at":"2015-02-17T14:33:14Z","updated_at":"2015-02-17T14:46:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0fd77cd633b35f97c91cc94be6a4d3fafe85bd7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nilearn/nilearn/pulls/437/commits","review_comments_url":"https://api.github.com/repos/nilearn/nilearn/pulls/437/comments","review_comment_url":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/{number}","comments_url":"https://api.github.com/repos/nilearn/nilearn/issues/437/comments","statuses_url":"https://api.github.com/repos/nilearn/nilearn/statuses/78b264bed87207e85c021544c2b1e8d892995560","head":{"label":"banilo:refactor_private_func","ref":"refactor_private_func","sha":"78b264bed87207e85c021544c2b1e8d892995560","user":{"login":"banilo","id":3907396,"avatar_url":"https://avatars.githubusercontent.com/u/3907396?v=3","gravatar_id":"","url":"https://api.github.com/users/banilo","html_url":"https://github.com/banilo","followers_url":"https://api.github.com/users/banilo/followers","following_url":"https://api.github.com/users/banilo/following{/other_user}","gists_url":"https://api.github.com/users/banilo/gists{/gist_id}","starred_url":"https://api.github.com/users/banilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banilo/subscriptions","organizations_url":"https://api.github.com/users/banilo/orgs","repos_url":"https://api.github.com/users/banilo/repos","events_url":"https://api.github.com/users/banilo/events{/privacy}","received_events_url":"https://api.github.com/users/banilo/received_events","type":"User","site_admin":false},"repo":{"id":24672150,"name":"nilearn","full_name":"banilo/nilearn","owner":{"login":"banilo","id":3907396,"avatar_url":"https://avatars.githubusercontent.com/u/3907396?v=3","gravatar_id":"","url":"https://api.github.com/users/banilo","html_url":"https://github.com/banilo","followers_url":"https://api.github.com/users/banilo/followers","following_url":"https://api.github.com/users/banilo/following{/other_user}","gists_url":"https://api.github.com/users/banilo/gists{/gist_id}","starred_url":"https://api.github.com/users/banilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/banilo/subscriptions","organizations_url":"https://api.github.com/users/banilo/orgs","repos_url":"https://api.github.com/users/banilo/repos","events_url":"https://api.github.com/users/banilo/events{/privacy}","received_events_url":"https://api.github.com/users/banilo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/banilo/nilearn","description":"Machine learning for NeuroImaging in Python","fork":true,"url":"https://api.github.com/repos/banilo/nilearn","forks_url":"https://api.github.com/repos/banilo/nilearn/forks","keys_url":"https://api.github.com/repos/banilo/nilearn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/banilo/nilearn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/banilo/nilearn/teams","hooks_url":"https://api.github.com/repos/banilo/nilearn/hooks","issue_events_url":"https://api.github.com/repos/banilo/nilearn/issues/events{/number}","events_url":"https://api.github.com/repos/banilo/nilearn/events","assignees_url":"https://api.github.com/repos/banilo/nilearn/assignees{/user}","branches_url":"https://api.github.com/repos/banilo/nilearn/branches{/branch}","tags_url":"https://api.github.com/repos/banilo/nilearn/tags","blobs_url":"https://api.github.com/repos/banilo/nilearn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/banilo/nilearn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/banilo/nilearn/git/refs{/sha}","trees_url":"https://api.github.com/repos/banilo/nilearn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/banilo/nilearn/statuses/{sha}","languages_url":"https://api.github.com/repos/banilo/nilearn/languages","stargazers_url":"https://api.github.com/repos/banilo/nilearn/stargazers","contributors_url":"https://api.github.com/repos/banilo/nilearn/contributors","subscribers_url":"https://api.github.com/repos/banilo/nilearn/subscribers","subscription_url":"https://api.github.com/repos/banilo/nilearn/subscription","commits_url":"https://api.github.com/repos/banilo/nilearn/commits{/sha}","git_commits_url":"https://api.github.com/repos/banilo/nilearn/git/commits{/sha}","comments_url":"https://api.github.com/repos/banilo/nilearn/comments{/number}","issue_comment_url":"https://api.github.com/repos/banilo/nilearn/issues/comments/{number}","contents_url":"https://api.github.com/repos/banilo/nilearn/contents/{+path}","compare_url":"https://api.github.com/repos/banilo/nilearn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/banilo/nilearn/merges","archive_url":"https://api.github.com/repos/banilo/nilearn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/banilo/nilearn/downloads","issues_url":"https://api.github.com/repos/banilo/nilearn/issues{/number}","pulls_url":"https://api.github.com/repos/banilo/nilearn/pulls{/number}","milestones_url":"https://api.github.com/repos/banilo/nilearn/milestones{/number}","notifications_url":"https://api.github.com/repos/banilo/nilearn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/banilo/nilearn/labels{/name}","releases_url":"https://api.github.com/repos/banilo/nilearn/releases{/id}","created_at":"2014-10-01T09:09:11Z","updated_at":"2014-12-16T14:19:59Z","pushed_at":"2015-02-17T14:31:01Z","git_url":"git://github.com/banilo/nilearn.git","ssh_url":"git@github.com:banilo/nilearn.git","clone_url":"https://github.com/banilo/nilearn.git","svn_url":"https://github.com/banilo/nilearn","homepage":"http://nilearn.github.io","size":6508,"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":"17aa2ed4737a2841b940abb04102b3d223d9621f","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-02-16T13:07:48Z","pushed_at":"2015-02-16T13:07:48Z","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":10836,"stargazers_count":72,"watchers_count":72,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":53,"mirror_url":null,"open_issues_count":66,"forks":53,"open_issues":66,"watchers":72,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/437"},"html":{"href":"https://github.com/nilearn/nilearn/pull/437"},"issue":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/437"},"comments":{"href":"https://api.github.com/repos/nilearn/nilearn/issues/437/comments"},"review_comments":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/437/comments"},"review_comment":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/nilearn/nilearn/pulls/437/commits"},"statuses":{"href":"https://api.github.com/repos/nilearn/nilearn/statuses/78b264bed87207e85c021544c2b1e8d892995560"}}}}