{"action":"created","comment":{"url":"https://api.github.com/repos/CleanCut/green/pulls/comments/63954236","id":63954236,"diff_hunk":"@@ -167,6 +171,9 @@ def writeln(self, text=''):\n     def write(self, text):\n         if type(text) == bytes:\n             text = text.decode('utf-8')\n+        # Compensate for windows' anti-social unicode behavior\n+        if self._ascii_only_output:\n+            text = unidecode(text)","path":"green/output.py","position":31,"original_position":31,"commit_id":"a9ebf9132a642ff20e4a0b27556824c7ef178bf1","original_commit_id":"a9ebf9132a642ff20e4a0b27556824c7ef178bf1","user":{"login":"CleanCut","id":5838512,"avatar_url":"https://avatars.githubusercontent.com/u/5838512?v=3","gravatar_id":"","url":"https://api.github.com/users/CleanCut","html_url":"https://github.com/CleanCut","followers_url":"https://api.github.com/users/CleanCut/followers","following_url":"https://api.github.com/users/CleanCut/following{/other_user}","gists_url":"https://api.github.com/users/CleanCut/gists{/gist_id}","starred_url":"https://api.github.com/users/CleanCut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleanCut/subscriptions","organizations_url":"https://api.github.com/users/CleanCut/orgs","repos_url":"https://api.github.com/users/CleanCut/repos","events_url":"https://api.github.com/users/CleanCut/events{/privacy}","received_events_url":"https://api.github.com/users/CleanCut/received_events","type":"User","site_admin":false},"body":"Hmm, wait.  Python 3 doesn't have the unicode() function anymore.\r\n\r\nSince it's a Python 2-specific fix, I suppose we should make that condition:\r\n\r\n    if self._ascii_only_output:\r\n        if platform.python_version_tuple()[0] == '2': # pragma: no cover\r\n           text = unicode(text)\r\n        text = unidecode(text)","created_at":"2016-05-19T21:03:15Z","updated_at":"2016-05-19T21:03:15Z","html_url":"https://github.com/CleanCut/green/pull/120#discussion_r63954236","pull_request_url":"https://api.github.com/repos/CleanCut/green/pulls/120","_links":{"self":{"href":"https://api.github.com/repos/CleanCut/green/pulls/comments/63954236"},"html":{"href":"https://github.com/CleanCut/green/pull/120#discussion_r63954236"},"pull_request":{"href":"https://api.github.com/repos/CleanCut/green/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/CleanCut/green/pulls/120","id":66240154,"html_url":"https://github.com/CleanCut/green/pull/120","diff_url":"https://github.com/CleanCut/green/pull/120.diff","patch_url":"https://github.com/CleanCut/green/pull/120.patch","issue_url":"https://api.github.com/repos/CleanCut/green/issues/120","number":120,"state":"open","locked":false,"title":"Un-unicode output for Windows CMD","user":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"body":"Fixes #119","created_at":"2016-04-12T22:41:45Z","updated_at":"2016-05-19T21:03:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f3469d9c09f9e50d37461bc611fede2e989b809b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CleanCut/green/pulls/120/commits","review_comments_url":"https://api.github.com/repos/CleanCut/green/pulls/120/comments","review_comment_url":"https://api.github.com/repos/CleanCut/green/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CleanCut/green/issues/120/comments","statuses_url":"https://api.github.com/repos/CleanCut/green/statuses/a9ebf9132a642ff20e4a0b27556824c7ef178bf1","head":{"label":"MinchinWeb:fix-119","ref":"fix-119","sha":"a9ebf9132a642ff20e4a0b27556824c7ef178bf1","user":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"repo":{"id":56101202,"name":"green","full_name":"MinchinWeb/green","owner":{"login":"MinchinWeb","id":1548809,"avatar_url":"https://avatars.githubusercontent.com/u/1548809?v=3","gravatar_id":"","url":"https://api.github.com/users/MinchinWeb","html_url":"https://github.com/MinchinWeb","followers_url":"https://api.github.com/users/MinchinWeb/followers","following_url":"https://api.github.com/users/MinchinWeb/following{/other_user}","gists_url":"https://api.github.com/users/MinchinWeb/gists{/gist_id}","starred_url":"https://api.github.com/users/MinchinWeb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MinchinWeb/subscriptions","organizations_url":"https://api.github.com/users/MinchinWeb/orgs","repos_url":"https://api.github.com/users/MinchinWeb/repos","events_url":"https://api.github.com/users/MinchinWeb/events{/privacy}","received_events_url":"https://api.github.com/users/MinchinWeb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MinchinWeb/green","description":"Green is a clean, colorful, fast python test runner.","fork":true,"url":"https://api.github.com/repos/MinchinWeb/green","forks_url":"https://api.github.com/repos/MinchinWeb/green/forks","keys_url":"https://api.github.com/repos/MinchinWeb/green/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MinchinWeb/green/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MinchinWeb/green/teams","hooks_url":"https://api.github.com/repos/MinchinWeb/green/hooks","issue_events_url":"https://api.github.com/repos/MinchinWeb/green/issues/events{/number}","events_url":"https://api.github.com/repos/MinchinWeb/green/events","assignees_url":"https://api.github.com/repos/MinchinWeb/green/assignees{/user}","branches_url":"https://api.github.com/repos/MinchinWeb/green/branches{/branch}","tags_url":"https://api.github.com/repos/MinchinWeb/green/tags","blobs_url":"https://api.github.com/repos/MinchinWeb/green/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MinchinWeb/green/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MinchinWeb/green/git/refs{/sha}","trees_url":"https://api.github.com/repos/MinchinWeb/green/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MinchinWeb/green/statuses/{sha}","languages_url":"https://api.github.com/repos/MinchinWeb/green/languages","stargazers_url":"https://api.github.com/repos/MinchinWeb/green/stargazers","contributors_url":"https://api.github.com/repos/MinchinWeb/green/contributors","subscribers_url":"https://api.github.com/repos/MinchinWeb/green/subscribers","subscription_url":"https://api.github.com/repos/MinchinWeb/green/subscription","commits_url":"https://api.github.com/repos/MinchinWeb/green/commits{/sha}","git_commits_url":"https://api.github.com/repos/MinchinWeb/green/git/commits{/sha}","comments_url":"https://api.github.com/repos/MinchinWeb/green/comments{/number}","issue_comment_url":"https://api.github.com/repos/MinchinWeb/green/issues/comments{/number}","contents_url":"https://api.github.com/repos/MinchinWeb/green/contents/{+path}","compare_url":"https://api.github.com/repos/MinchinWeb/green/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MinchinWeb/green/merges","archive_url":"https://api.github.com/repos/MinchinWeb/green/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MinchinWeb/green/downloads","issues_url":"https://api.github.com/repos/MinchinWeb/green/issues{/number}","pulls_url":"https://api.github.com/repos/MinchinWeb/green/pulls{/number}","milestones_url":"https://api.github.com/repos/MinchinWeb/green/milestones{/number}","notifications_url":"https://api.github.com/repos/MinchinWeb/green/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MinchinWeb/green/labels{/name}","releases_url":"https://api.github.com/repos/MinchinWeb/green/releases{/id}","deployments_url":"https://api.github.com/repos/MinchinWeb/green/deployments","created_at":"2016-04-12T22:07:10Z","updated_at":"2016-04-12T22:07:11Z","pushed_at":"2016-04-16T03:24:45Z","git_url":"git://github.com/MinchinWeb/green.git","ssh_url":"git@github.com:MinchinWeb/green.git","clone_url":"https://github.com/MinchinWeb/green.git","svn_url":"https://github.com/MinchinWeb/green","homepage":"","size":1111,"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":"CleanCut:master","ref":"master","sha":"73872d97a94b5d219cbebbb72c2be52dcbac7a4f","user":{"login":"CleanCut","id":5838512,"avatar_url":"https://avatars.githubusercontent.com/u/5838512?v=3","gravatar_id":"","url":"https://api.github.com/users/CleanCut","html_url":"https://github.com/CleanCut","followers_url":"https://api.github.com/users/CleanCut/followers","following_url":"https://api.github.com/users/CleanCut/following{/other_user}","gists_url":"https://api.github.com/users/CleanCut/gists{/gist_id}","starred_url":"https://api.github.com/users/CleanCut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleanCut/subscriptions","organizations_url":"https://api.github.com/users/CleanCut/orgs","repos_url":"https://api.github.com/users/CleanCut/repos","events_url":"https://api.github.com/users/CleanCut/events{/privacy}","received_events_url":"https://api.github.com/users/CleanCut/received_events","type":"User","site_admin":false},"repo":{"id":18342888,"name":"green","full_name":"CleanCut/green","owner":{"login":"CleanCut","id":5838512,"avatar_url":"https://avatars.githubusercontent.com/u/5838512?v=3","gravatar_id":"","url":"https://api.github.com/users/CleanCut","html_url":"https://github.com/CleanCut","followers_url":"https://api.github.com/users/CleanCut/followers","following_url":"https://api.github.com/users/CleanCut/following{/other_user}","gists_url":"https://api.github.com/users/CleanCut/gists{/gist_id}","starred_url":"https://api.github.com/users/CleanCut/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CleanCut/subscriptions","organizations_url":"https://api.github.com/users/CleanCut/orgs","repos_url":"https://api.github.com/users/CleanCut/repos","events_url":"https://api.github.com/users/CleanCut/events{/privacy}","received_events_url":"https://api.github.com/users/CleanCut/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CleanCut/green","description":"Green is a clean, colorful, fast python test runner.","fork":false,"url":"https://api.github.com/repos/CleanCut/green","forks_url":"https://api.github.com/repos/CleanCut/green/forks","keys_url":"https://api.github.com/repos/CleanCut/green/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CleanCut/green/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CleanCut/green/teams","hooks_url":"https://api.github.com/repos/CleanCut/green/hooks","issue_events_url":"https://api.github.com/repos/CleanCut/green/issues/events{/number}","events_url":"https://api.github.com/repos/CleanCut/green/events","assignees_url":"https://api.github.com/repos/CleanCut/green/assignees{/user}","branches_url":"https://api.github.com/repos/CleanCut/green/branches{/branch}","tags_url":"https://api.github.com/repos/CleanCut/green/tags","blobs_url":"https://api.github.com/repos/CleanCut/green/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CleanCut/green/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CleanCut/green/git/refs{/sha}","trees_url":"https://api.github.com/repos/CleanCut/green/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CleanCut/green/statuses/{sha}","languages_url":"https://api.github.com/repos/CleanCut/green/languages","stargazers_url":"https://api.github.com/repos/CleanCut/green/stargazers","contributors_url":"https://api.github.com/repos/CleanCut/green/contributors","subscribers_url":"https://api.github.com/repos/CleanCut/green/subscribers","subscription_url":"https://api.github.com/repos/CleanCut/green/subscription","commits_url":"https://api.github.com/repos/CleanCut/green/commits{/sha}","git_commits_url":"https://api.github.com/repos/CleanCut/green/git/commits{/sha}","comments_url":"https://api.github.com/repos/CleanCut/green/comments{/number}","issue_comment_url":"https://api.github.com/repos/CleanCut/green/issues/comments{/number}","contents_url":"https://api.github.com/repos/CleanCut/green/contents/{+path}","compare_url":"https://api.github.com/repos/CleanCut/green/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CleanCut/green/merges","archive_url":"https://api.github.com/repos/CleanCut/green/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CleanCut/green/downloads","issues_url":"https://api.github.com/repos/CleanCut/green/issues{/number}","pulls_url":"https://api.github.com/repos/CleanCut/green/pulls{/number}","milestones_url":"https://api.github.com/repos/CleanCut/green/milestones{/number}","notifications_url":"https://api.github.com/repos/CleanCut/green/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CleanCut/green/labels{/name}","releases_url":"https://api.github.com/repos/CleanCut/green/releases{/id}","deployments_url":"https://api.github.com/repos/CleanCut/green/deployments","created_at":"2014-04-01T20:08:18Z","updated_at":"2016-05-19T10:45:49Z","pushed_at":"2016-04-16T03:24:45Z","git_url":"git://github.com/CleanCut/green.git","ssh_url":"git@github.com:CleanCut/green.git","clone_url":"https://github.com/CleanCut/green.git","svn_url":"https://github.com/CleanCut/green","homepage":"","size":1117,"stargazers_count":348,"watchers_count":348,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"open_issues_count":24,"forks":27,"open_issues":24,"watchers":348,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CleanCut/green/pulls/120"},"html":{"href":"https://github.com/CleanCut/green/pull/120"},"issue":{"href":"https://api.github.com/repos/CleanCut/green/issues/120"},"comments":{"href":"https://api.github.com/repos/CleanCut/green/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/CleanCut/green/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/CleanCut/green/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CleanCut/green/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/CleanCut/green/statuses/a9ebf9132a642ff20e4a0b27556824c7ef178bf1"}}}}