{"action":"created","comment":{"url":"https://api.github.com/repos/sloria/doitlive/pulls/comments/41808913","id":41808913,"diff_hunk":"@@ -181,6 +184,18 @@ class TTY(object):\n     DIM = ANSICode(dim=True)\n \n \n+def echo(message=None, file=None, nl=True, err=False, color=None, carriage_return=False):\n+    \"\"\"\n+    Patched click echo function.\n+    \"\"\"\n+    if carriage_return and nl:\n+        click_echo(message + '\\r\\n', file, False, err, color)","path":"doitlive.py","position":23,"original_position":23,"commit_id":"7e2beb5d805ac3ebf7519b35b864070e14722296","original_commit_id":"7e2beb5d805ac3ebf7519b35b864070e14722296","user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"body":"This will not be compatible with older versions (< 4.0) of click, though I am fine with bumping up the click version requirement. Can you change that in this PR?","created_at":"2015-10-12T22:38:27Z","updated_at":"2015-10-12T22:38:27Z","html_url":"https://github.com/sloria/doitlive/pull/11#discussion_r41808913","pull_request_url":"https://api.github.com/repos/sloria/doitlive/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/sloria/doitlive/pulls/comments/41808913"},"html":{"href":"https://github.com/sloria/doitlive/pull/11#discussion_r41808913"},"pull_request":{"href":"https://api.github.com/repos/sloria/doitlive/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/sloria/doitlive/pulls/11","id":47422092,"html_url":"https://github.com/sloria/doitlive/pull/11","diff_url":"https://github.com/sloria/doitlive/pull/11.diff","patch_url":"https://github.com/sloria/doitlive/pull/11.patch","issue_url":"https://api.github.com/repos/sloria/doitlive/issues/11","number":11,"state":"open","locked":false,"title":"Fixed #6 (characters sometimes echoed) and #12 (unit-test failure, click unicode warnings)","user":{"login":"Stefan-Code","id":9949033,"avatar_url":"https://avatars.githubusercontent.com/u/9949033?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan-Code","html_url":"https://github.com/Stefan-Code","followers_url":"https://api.github.com/users/Stefan-Code/followers","following_url":"https://api.github.com/users/Stefan-Code/following{/other_user}","gists_url":"https://api.github.com/users/Stefan-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan-Code/subscriptions","organizations_url":"https://api.github.com/users/Stefan-Code/orgs","repos_url":"https://api.github.com/users/Stefan-Code/repos","events_url":"https://api.github.com/users/Stefan-Code/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan-Code/received_events","type":"User","site_admin":false},"body":"Please also refer to [the original issue](https://github.com/sloria/doitlive/issues/6)\r\nChanges made: \r\n* termutils.py: added to provide contextmanager for raw mode\r\n* doitlive.py edited to use said contextmanager\r\n* .gitignore: added some virtualenv stuff","created_at":"2015-10-12T13:54:53Z","updated_at":"2015-10-12T22:38:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"45240350ef08ad984497964fe3cc9f788ea86563","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sloria/doitlive/pulls/11/commits","review_comments_url":"https://api.github.com/repos/sloria/doitlive/pulls/11/comments","review_comment_url":"https://api.github.com/repos/sloria/doitlive/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sloria/doitlive/issues/11/comments","statuses_url":"https://api.github.com/repos/sloria/doitlive/statuses/7e2beb5d805ac3ebf7519b35b864070e14722296","head":{"label":"Stefan-Code:dev","ref":"dev","sha":"7e2beb5d805ac3ebf7519b35b864070e14722296","user":{"login":"Stefan-Code","id":9949033,"avatar_url":"https://avatars.githubusercontent.com/u/9949033?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan-Code","html_url":"https://github.com/Stefan-Code","followers_url":"https://api.github.com/users/Stefan-Code/followers","following_url":"https://api.github.com/users/Stefan-Code/following{/other_user}","gists_url":"https://api.github.com/users/Stefan-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan-Code/subscriptions","organizations_url":"https://api.github.com/users/Stefan-Code/orgs","repos_url":"https://api.github.com/users/Stefan-Code/repos","events_url":"https://api.github.com/users/Stefan-Code/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan-Code/received_events","type":"User","site_admin":false},"repo":{"id":44062623,"name":"doitlive","full_name":"Stefan-Code/doitlive","owner":{"login":"Stefan-Code","id":9949033,"avatar_url":"https://avatars.githubusercontent.com/u/9949033?v=3","gravatar_id":"","url":"https://api.github.com/users/Stefan-Code","html_url":"https://github.com/Stefan-Code","followers_url":"https://api.github.com/users/Stefan-Code/followers","following_url":"https://api.github.com/users/Stefan-Code/following{/other_user}","gists_url":"https://api.github.com/users/Stefan-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/Stefan-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Stefan-Code/subscriptions","organizations_url":"https://api.github.com/users/Stefan-Code/orgs","repos_url":"https://api.github.com/users/Stefan-Code/repos","events_url":"https://api.github.com/users/Stefan-Code/events{/privacy}","received_events_url":"https://api.github.com/users/Stefan-Code/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Stefan-Code/doitlive","description":"Because sometimes you need to do it live","fork":true,"url":"https://api.github.com/repos/Stefan-Code/doitlive","forks_url":"https://api.github.com/repos/Stefan-Code/doitlive/forks","keys_url":"https://api.github.com/repos/Stefan-Code/doitlive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Stefan-Code/doitlive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Stefan-Code/doitlive/teams","hooks_url":"https://api.github.com/repos/Stefan-Code/doitlive/hooks","issue_events_url":"https://api.github.com/repos/Stefan-Code/doitlive/issues/events{/number}","events_url":"https://api.github.com/repos/Stefan-Code/doitlive/events","assignees_url":"https://api.github.com/repos/Stefan-Code/doitlive/assignees{/user}","branches_url":"https://api.github.com/repos/Stefan-Code/doitlive/branches{/branch}","tags_url":"https://api.github.com/repos/Stefan-Code/doitlive/tags","blobs_url":"https://api.github.com/repos/Stefan-Code/doitlive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Stefan-Code/doitlive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Stefan-Code/doitlive/git/refs{/sha}","trees_url":"https://api.github.com/repos/Stefan-Code/doitlive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Stefan-Code/doitlive/statuses/{sha}","languages_url":"https://api.github.com/repos/Stefan-Code/doitlive/languages","stargazers_url":"https://api.github.com/repos/Stefan-Code/doitlive/stargazers","contributors_url":"https://api.github.com/repos/Stefan-Code/doitlive/contributors","subscribers_url":"https://api.github.com/repos/Stefan-Code/doitlive/subscribers","subscription_url":"https://api.github.com/repos/Stefan-Code/doitlive/subscription","commits_url":"https://api.github.com/repos/Stefan-Code/doitlive/commits{/sha}","git_commits_url":"https://api.github.com/repos/Stefan-Code/doitlive/git/commits{/sha}","comments_url":"https://api.github.com/repos/Stefan-Code/doitlive/comments{/number}","issue_comment_url":"https://api.github.com/repos/Stefan-Code/doitlive/issues/comments{/number}","contents_url":"https://api.github.com/repos/Stefan-Code/doitlive/contents/{+path}","compare_url":"https://api.github.com/repos/Stefan-Code/doitlive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Stefan-Code/doitlive/merges","archive_url":"https://api.github.com/repos/Stefan-Code/doitlive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Stefan-Code/doitlive/downloads","issues_url":"https://api.github.com/repos/Stefan-Code/doitlive/issues{/number}","pulls_url":"https://api.github.com/repos/Stefan-Code/doitlive/pulls{/number}","milestones_url":"https://api.github.com/repos/Stefan-Code/doitlive/milestones{/number}","notifications_url":"https://api.github.com/repos/Stefan-Code/doitlive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Stefan-Code/doitlive/labels{/name}","releases_url":"https://api.github.com/repos/Stefan-Code/doitlive/releases{/id}","created_at":"2015-10-11T17:42:47Z","updated_at":"2015-10-11T17:42:48Z","pushed_at":"2015-10-12T19:08:30Z","git_url":"git://github.com/Stefan-Code/doitlive.git","ssh_url":"git@github.com:Stefan-Code/doitlive.git","clone_url":"https://github.com/Stefan-Code/doitlive.git","svn_url":"https://github.com/Stefan-Code/doitlive","homepage":"http://doitlive.rtfd.org/","size":189,"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":"dev"}},"base":{"label":"sloria:dev","ref":"dev","sha":"784cba2ea028f85b14225af0b061f0aa90bfc9b3","user":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"repo":{"id":20870711,"name":"doitlive","full_name":"sloria/doitlive","owner":{"login":"sloria","id":2379650,"avatar_url":"https://avatars.githubusercontent.com/u/2379650?v=3","gravatar_id":"","url":"https://api.github.com/users/sloria","html_url":"https://github.com/sloria","followers_url":"https://api.github.com/users/sloria/followers","following_url":"https://api.github.com/users/sloria/following{/other_user}","gists_url":"https://api.github.com/users/sloria/gists{/gist_id}","starred_url":"https://api.github.com/users/sloria/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sloria/subscriptions","organizations_url":"https://api.github.com/users/sloria/orgs","repos_url":"https://api.github.com/users/sloria/repos","events_url":"https://api.github.com/users/sloria/events{/privacy}","received_events_url":"https://api.github.com/users/sloria/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sloria/doitlive","description":"Because sometimes you need to do it live","fork":false,"url":"https://api.github.com/repos/sloria/doitlive","forks_url":"https://api.github.com/repos/sloria/doitlive/forks","keys_url":"https://api.github.com/repos/sloria/doitlive/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sloria/doitlive/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sloria/doitlive/teams","hooks_url":"https://api.github.com/repos/sloria/doitlive/hooks","issue_events_url":"https://api.github.com/repos/sloria/doitlive/issues/events{/number}","events_url":"https://api.github.com/repos/sloria/doitlive/events","assignees_url":"https://api.github.com/repos/sloria/doitlive/assignees{/user}","branches_url":"https://api.github.com/repos/sloria/doitlive/branches{/branch}","tags_url":"https://api.github.com/repos/sloria/doitlive/tags","blobs_url":"https://api.github.com/repos/sloria/doitlive/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sloria/doitlive/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sloria/doitlive/git/refs{/sha}","trees_url":"https://api.github.com/repos/sloria/doitlive/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sloria/doitlive/statuses/{sha}","languages_url":"https://api.github.com/repos/sloria/doitlive/languages","stargazers_url":"https://api.github.com/repos/sloria/doitlive/stargazers","contributors_url":"https://api.github.com/repos/sloria/doitlive/contributors","subscribers_url":"https://api.github.com/repos/sloria/doitlive/subscribers","subscription_url":"https://api.github.com/repos/sloria/doitlive/subscription","commits_url":"https://api.github.com/repos/sloria/doitlive/commits{/sha}","git_commits_url":"https://api.github.com/repos/sloria/doitlive/git/commits{/sha}","comments_url":"https://api.github.com/repos/sloria/doitlive/comments{/number}","issue_comment_url":"https://api.github.com/repos/sloria/doitlive/issues/comments{/number}","contents_url":"https://api.github.com/repos/sloria/doitlive/contents/{+path}","compare_url":"https://api.github.com/repos/sloria/doitlive/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sloria/doitlive/merges","archive_url":"https://api.github.com/repos/sloria/doitlive/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sloria/doitlive/downloads","issues_url":"https://api.github.com/repos/sloria/doitlive/issues{/number}","pulls_url":"https://api.github.com/repos/sloria/doitlive/pulls{/number}","milestones_url":"https://api.github.com/repos/sloria/doitlive/milestones{/number}","notifications_url":"https://api.github.com/repos/sloria/doitlive/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sloria/doitlive/labels{/name}","releases_url":"https://api.github.com/repos/sloria/doitlive/releases{/id}","created_at":"2014-06-16T02:39:29Z","updated_at":"2015-10-12T22:28:25Z","pushed_at":"2015-10-12T19:08:30Z","git_url":"git://github.com/sloria/doitlive.git","ssh_url":"git@github.com:sloria/doitlive.git","clone_url":"https://github.com/sloria/doitlive.git","svn_url":"https://github.com/sloria/doitlive","homepage":"http://doitlive.rtfd.org/","size":419,"stargazers_count":602,"watchers_count":602,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":7,"forks":19,"open_issues":7,"watchers":602,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/sloria/doitlive/pulls/11"},"html":{"href":"https://github.com/sloria/doitlive/pull/11"},"issue":{"href":"https://api.github.com/repos/sloria/doitlive/issues/11"},"comments":{"href":"https://api.github.com/repos/sloria/doitlive/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/sloria/doitlive/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/sloria/doitlive/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sloria/doitlive/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/sloria/doitlive/statuses/7e2beb5d805ac3ebf7519b35b864070e14722296"}}}}