{"action":"created","comment":{"url":"https://api.github.com/repos/kivy/python-for-android/pulls/comments/45398789","id":45398789,"diff_hunk":"@@ -69,7 +78,7 @@ def format(self, record):\n                                     # handler and reset the level\n     logger.setLevel(logging.INFO)\n     logger.touched = True\n-    ch = logging.StreamHandler(stdout)\n+    ch = logging.StreamHandler(stdout) if sys.stdout.isatty() else logging.NullHandler()","path":"pythonforandroid/toolchain.py","position":23,"original_position":23,"commit_id":"fbeb6754d89db0f24c61e2b7e11ccb2e7d2d2f72","original_commit_id":"fbeb6754d89db0f24c61e2b7e11ccb2e7d2d2f72","user":{"login":"denys-duchier","id":966422,"avatar_url":"https://avatars.githubusercontent.com/u/966422?v=3","gravatar_id":"","url":"https://api.github.com/users/denys-duchier","html_url":"https://github.com/denys-duchier","followers_url":"https://api.github.com/users/denys-duchier/followers","following_url":"https://api.github.com/users/denys-duchier/following{/other_user}","gists_url":"https://api.github.com/users/denys-duchier/gists{/gist_id}","starred_url":"https://api.github.com/users/denys-duchier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denys-duchier/subscriptions","organizations_url":"https://api.github.com/users/denys-duchier/orgs","repos_url":"https://api.github.com/users/denys-duchier/repos","events_url":"https://api.github.com/users/denys-duchier/events{/privacy}","received_events_url":"https://api.github.com/users/denys-duchier/received_events","type":"User","site_admin":false},"body":"yes, I am leaning towards calling the python so p4a doesn't have to be \"installed\".","created_at":"2015-11-19T20:55:11Z","updated_at":"2015-11-19T20:55:11Z","html_url":"https://github.com/kivy/python-for-android/pull/494#discussion_r45398789","pull_request_url":"https://api.github.com/repos/kivy/python-for-android/pulls/494","_links":{"self":{"href":"https://api.github.com/repos/kivy/python-for-android/pulls/comments/45398789"},"html":{"href":"https://github.com/kivy/python-for-android/pull/494#discussion_r45398789"},"pull_request":{"href":"https://api.github.com/repos/kivy/python-for-android/pulls/494"}}},"pull_request":{"url":"https://api.github.com/repos/kivy/python-for-android/pulls/494","id":51256191,"html_url":"https://github.com/kivy/python-for-android/pull/494","diff_url":"https://github.com/kivy/python-for-android/pull/494.diff","patch_url":"https://github.com/kivy/python-for-android/pull/494.patch","issue_url":"https://api.github.com/repos/kivy/python-for-android/issues/494","number":494,"state":"closed","locked":false,"title":"suppress colorization if stdout is not a tty","user":{"login":"denys-duchier","id":966422,"avatar_url":"https://avatars.githubusercontent.com/u/966422?v=3","gravatar_id":"","url":"https://api.github.com/users/denys-duchier","html_url":"https://github.com/denys-duchier","followers_url":"https://api.github.com/users/denys-duchier/followers","following_url":"https://api.github.com/users/denys-duchier/following{/other_user}","gists_url":"https://api.github.com/users/denys-duchier/gists{/gist_id}","starred_url":"https://api.github.com/users/denys-duchier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denys-duchier/subscriptions","organizations_url":"https://api.github.com/users/denys-duchier/orgs","repos_url":"https://api.github.com/users/denys-duchier/repos","events_url":"https://api.github.com/users/denys-duchier/events{/privacy}","received_events_url":"https://api.github.com/users/denys-duchier/received_events","type":"User","site_admin":false},"body":"suppressing colorization makes the output easier to process by other scripts.","created_at":"2015-11-19T17:45:40Z","updated_at":"2015-11-19T20:55:11Z","closed_at":"2015-11-19T20:51:45Z","merged_at":"2015-11-19T20:51:45Z","merge_commit_sha":"31b213511d139cf1a12b8fc5ae3224f56f38a447","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kivy/python-for-android/pulls/494/commits","review_comments_url":"https://api.github.com/repos/kivy/python-for-android/pulls/494/comments","review_comment_url":"https://api.github.com/repos/kivy/python-for-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kivy/python-for-android/issues/494/comments","statuses_url":"https://api.github.com/repos/kivy/python-for-android/statuses/fbeb6754d89db0f24c61e2b7e11ccb2e7d2d2f72","head":{"label":"denys-duchier:colorama-fix","ref":"colorama-fix","sha":"fbeb6754d89db0f24c61e2b7e11ccb2e7d2d2f72","user":{"login":"denys-duchier","id":966422,"avatar_url":"https://avatars.githubusercontent.com/u/966422?v=3","gravatar_id":"","url":"https://api.github.com/users/denys-duchier","html_url":"https://github.com/denys-duchier","followers_url":"https://api.github.com/users/denys-duchier/followers","following_url":"https://api.github.com/users/denys-duchier/following{/other_user}","gists_url":"https://api.github.com/users/denys-duchier/gists{/gist_id}","starred_url":"https://api.github.com/users/denys-duchier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denys-duchier/subscriptions","organizations_url":"https://api.github.com/users/denys-duchier/orgs","repos_url":"https://api.github.com/users/denys-duchier/repos","events_url":"https://api.github.com/users/denys-duchier/events{/privacy}","received_events_url":"https://api.github.com/users/denys-duchier/received_events","type":"User","site_admin":false},"repo":{"id":32826484,"name":"python-for-android","full_name":"denys-duchier/python-for-android","owner":{"login":"denys-duchier","id":966422,"avatar_url":"https://avatars.githubusercontent.com/u/966422?v=3","gravatar_id":"","url":"https://api.github.com/users/denys-duchier","html_url":"https://github.com/denys-duchier","followers_url":"https://api.github.com/users/denys-duchier/followers","following_url":"https://api.github.com/users/denys-duchier/following{/other_user}","gists_url":"https://api.github.com/users/denys-duchier/gists{/gist_id}","starred_url":"https://api.github.com/users/denys-duchier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/denys-duchier/subscriptions","organizations_url":"https://api.github.com/users/denys-duchier/orgs","repos_url":"https://api.github.com/users/denys-duchier/repos","events_url":"https://api.github.com/users/denys-duchier/events{/privacy}","received_events_url":"https://api.github.com/users/denys-duchier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/denys-duchier/python-for-android","description":"Turn your Python application into an Android APK - Build your own python and extension","fork":true,"url":"https://api.github.com/repos/denys-duchier/python-for-android","forks_url":"https://api.github.com/repos/denys-duchier/python-for-android/forks","keys_url":"https://api.github.com/repos/denys-duchier/python-for-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/denys-duchier/python-for-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/denys-duchier/python-for-android/teams","hooks_url":"https://api.github.com/repos/denys-duchier/python-for-android/hooks","issue_events_url":"https://api.github.com/repos/denys-duchier/python-for-android/issues/events{/number}","events_url":"https://api.github.com/repos/denys-duchier/python-for-android/events","assignees_url":"https://api.github.com/repos/denys-duchier/python-for-android/assignees{/user}","branches_url":"https://api.github.com/repos/denys-duchier/python-for-android/branches{/branch}","tags_url":"https://api.github.com/repos/denys-duchier/python-for-android/tags","blobs_url":"https://api.github.com/repos/denys-duchier/python-for-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/denys-duchier/python-for-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/denys-duchier/python-for-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/denys-duchier/python-for-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/denys-duchier/python-for-android/statuses/{sha}","languages_url":"https://api.github.com/repos/denys-duchier/python-for-android/languages","stargazers_url":"https://api.github.com/repos/denys-duchier/python-for-android/stargazers","contributors_url":"https://api.github.com/repos/denys-duchier/python-for-android/contributors","subscribers_url":"https://api.github.com/repos/denys-duchier/python-for-android/subscribers","subscription_url":"https://api.github.com/repos/denys-duchier/python-for-android/subscription","commits_url":"https://api.github.com/repos/denys-duchier/python-for-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/denys-duchier/python-for-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/denys-duchier/python-for-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/denys-duchier/python-for-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/denys-duchier/python-for-android/contents/{+path}","compare_url":"https://api.github.com/repos/denys-duchier/python-for-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/denys-duchier/python-for-android/merges","archive_url":"https://api.github.com/repos/denys-duchier/python-for-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/denys-duchier/python-for-android/downloads","issues_url":"https://api.github.com/repos/denys-duchier/python-for-android/issues{/number}","pulls_url":"https://api.github.com/repos/denys-duchier/python-for-android/pulls{/number}","milestones_url":"https://api.github.com/repos/denys-duchier/python-for-android/milestones{/number}","notifications_url":"https://api.github.com/repos/denys-duchier/python-for-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/denys-duchier/python-for-android/labels{/name}","releases_url":"https://api.github.com/repos/denys-duchier/python-for-android/releases{/id}","created_at":"2015-03-24T21:34:22Z","updated_at":"2015-11-19T17:44:20Z","pushed_at":"2015-11-19T20:12:39Z","git_url":"git://github.com/denys-duchier/python-for-android.git","ssh_url":"git@github.com:denys-duchier/python-for-android.git","clone_url":"https://github.com/denys-duchier/python-for-android.git","svn_url":"https://github.com/denys-duchier/python-for-android","homepage":"http://python-for-android.readthedocs.org","size":14262,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"kivy:master","ref":"master","sha":"1497c59a0546af0351727daf2f26b031bca5cfbf","user":{"login":"kivy","id":1266152,"avatar_url":"https://avatars.githubusercontent.com/u/1266152?v=3","gravatar_id":"","url":"https://api.github.com/users/kivy","html_url":"https://github.com/kivy","followers_url":"https://api.github.com/users/kivy/followers","following_url":"https://api.github.com/users/kivy/following{/other_user}","gists_url":"https://api.github.com/users/kivy/gists{/gist_id}","starred_url":"https://api.github.com/users/kivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivy/subscriptions","organizations_url":"https://api.github.com/users/kivy/orgs","repos_url":"https://api.github.com/users/kivy/repos","events_url":"https://api.github.com/users/kivy/events{/privacy}","received_events_url":"https://api.github.com/users/kivy/received_events","type":"Organization","site_admin":false},"repo":{"id":2866041,"name":"python-for-android","full_name":"kivy/python-for-android","owner":{"login":"kivy","id":1266152,"avatar_url":"https://avatars.githubusercontent.com/u/1266152?v=3","gravatar_id":"","url":"https://api.github.com/users/kivy","html_url":"https://github.com/kivy","followers_url":"https://api.github.com/users/kivy/followers","following_url":"https://api.github.com/users/kivy/following{/other_user}","gists_url":"https://api.github.com/users/kivy/gists{/gist_id}","starred_url":"https://api.github.com/users/kivy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kivy/subscriptions","organizations_url":"https://api.github.com/users/kivy/orgs","repos_url":"https://api.github.com/users/kivy/repos","events_url":"https://api.github.com/users/kivy/events{/privacy}","received_events_url":"https://api.github.com/users/kivy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/kivy/python-for-android","description":"Turn your Python application into an Android APK - Build your own python and extension","fork":false,"url":"https://api.github.com/repos/kivy/python-for-android","forks_url":"https://api.github.com/repos/kivy/python-for-android/forks","keys_url":"https://api.github.com/repos/kivy/python-for-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kivy/python-for-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kivy/python-for-android/teams","hooks_url":"https://api.github.com/repos/kivy/python-for-android/hooks","issue_events_url":"https://api.github.com/repos/kivy/python-for-android/issues/events{/number}","events_url":"https://api.github.com/repos/kivy/python-for-android/events","assignees_url":"https://api.github.com/repos/kivy/python-for-android/assignees{/user}","branches_url":"https://api.github.com/repos/kivy/python-for-android/branches{/branch}","tags_url":"https://api.github.com/repos/kivy/python-for-android/tags","blobs_url":"https://api.github.com/repos/kivy/python-for-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kivy/python-for-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kivy/python-for-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/kivy/python-for-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kivy/python-for-android/statuses/{sha}","languages_url":"https://api.github.com/repos/kivy/python-for-android/languages","stargazers_url":"https://api.github.com/repos/kivy/python-for-android/stargazers","contributors_url":"https://api.github.com/repos/kivy/python-for-android/contributors","subscribers_url":"https://api.github.com/repos/kivy/python-for-android/subscribers","subscription_url":"https://api.github.com/repos/kivy/python-for-android/subscription","commits_url":"https://api.github.com/repos/kivy/python-for-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/kivy/python-for-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/kivy/python-for-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/kivy/python-for-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/kivy/python-for-android/contents/{+path}","compare_url":"https://api.github.com/repos/kivy/python-for-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kivy/python-for-android/merges","archive_url":"https://api.github.com/repos/kivy/python-for-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kivy/python-for-android/downloads","issues_url":"https://api.github.com/repos/kivy/python-for-android/issues{/number}","pulls_url":"https://api.github.com/repos/kivy/python-for-android/pulls{/number}","milestones_url":"https://api.github.com/repos/kivy/python-for-android/milestones{/number}","notifications_url":"https://api.github.com/repos/kivy/python-for-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kivy/python-for-android/labels{/name}","releases_url":"https://api.github.com/repos/kivy/python-for-android/releases{/id}","created_at":"2011-11-28T09:02:36Z","updated_at":"2015-11-19T09:26:47Z","pushed_at":"2015-11-19T20:51:45Z","git_url":"git://github.com/kivy/python-for-android.git","ssh_url":"git@github.com:kivy/python-for-android.git","clone_url":"https://github.com/kivy/python-for-android.git","svn_url":"https://github.com/kivy/python-for-android","homepage":"https://python-for-android.readthedocs.org","size":14814,"stargazers_count":1928,"watchers_count":1928,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":439,"mirror_url":null,"open_issues_count":116,"forks":439,"open_issues":116,"watchers":1928,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/kivy/python-for-android/pulls/494"},"html":{"href":"https://github.com/kivy/python-for-android/pull/494"},"issue":{"href":"https://api.github.com/repos/kivy/python-for-android/issues/494"},"comments":{"href":"https://api.github.com/repos/kivy/python-for-android/issues/494/comments"},"review_comments":{"href":"https://api.github.com/repos/kivy/python-for-android/pulls/494/comments"},"review_comment":{"href":"https://api.github.com/repos/kivy/python-for-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kivy/python-for-android/pulls/494/commits"},"statuses":{"href":"https://api.github.com/repos/kivy/python-for-android/statuses/fbeb6754d89db0f24c61e2b7e11ccb2e7d2d2f72"}}}}