{"action":"closed","number":80,"pull_request":{"url":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/80","id":36169538,"html_url":"https://github.com/lincolnloop/python-qrcode/pull/80","diff_url":"https://github.com/lincolnloop/python-qrcode/pull/80.diff","patch_url":"https://github.com/lincolnloop/python-qrcode/pull/80.patch","issue_url":"https://api.github.com/repos/lincolnloop/python-qrcode/issues/80","number":80,"state":"closed","locked":false,"title":"Output encoding for print_ascii on Python 2.6","user":{"login":"welshjf","id":7895696,"avatar_url":"https://avatars.githubusercontent.com/u/7895696?v=3","gravatar_id":"","url":"https://api.github.com/users/welshjf","html_url":"https://github.com/welshjf","followers_url":"https://api.github.com/users/welshjf/followers","following_url":"https://api.github.com/users/welshjf/following{/other_user}","gists_url":"https://api.github.com/users/welshjf/gists{/gist_id}","starred_url":"https://api.github.com/users/welshjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welshjf/subscriptions","organizations_url":"https://api.github.com/users/welshjf/orgs","repos_url":"https://api.github.com/users/welshjf/repos","events_url":"https://api.github.com/users/welshjf/events{/privacy}","received_events_url":"https://api.github.com/users/welshjf/received_events","type":"User","site_admin":false},"body":"This makes write() work the same as on 2.7/3, or the print statement on\r\n2.6. None of these will work if stdout is redirected; in that case, we\r\naren't in any better position to guess the encoding than Python. This\r\nisn't a problem for the basic script usage, as it only uses print_ascii\r\nif stdout is a TTY.\r\n\r\nFixes #79 ","created_at":"2015-05-26T04:52:03Z","updated_at":"2016-01-24T21:15:29Z","closed_at":"2016-01-24T21:15:29Z","merged_at":null,"merge_commit_sha":"9e89242cec7e244fb794704960d5ec36096a6963","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/80/commits","review_comments_url":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/80/comments","review_comment_url":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/lincolnloop/python-qrcode/issues/80/comments","statuses_url":"https://api.github.com/repos/lincolnloop/python-qrcode/statuses/53d218f4370067894db0f8c1816a7f2839c23043","head":{"label":"welshjf:master","ref":"master","sha":"53d218f4370067894db0f8c1816a7f2839c23043","user":{"login":"welshjf","id":7895696,"avatar_url":"https://avatars.githubusercontent.com/u/7895696?v=3","gravatar_id":"","url":"https://api.github.com/users/welshjf","html_url":"https://github.com/welshjf","followers_url":"https://api.github.com/users/welshjf/followers","following_url":"https://api.github.com/users/welshjf/following{/other_user}","gists_url":"https://api.github.com/users/welshjf/gists{/gist_id}","starred_url":"https://api.github.com/users/welshjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welshjf/subscriptions","organizations_url":"https://api.github.com/users/welshjf/orgs","repos_url":"https://api.github.com/users/welshjf/repos","events_url":"https://api.github.com/users/welshjf/events{/privacy}","received_events_url":"https://api.github.com/users/welshjf/received_events","type":"User","site_admin":false},"repo":{"id":20869773,"name":"python-qrcode","full_name":"welshjf/python-qrcode","owner":{"login":"welshjf","id":7895696,"avatar_url":"https://avatars.githubusercontent.com/u/7895696?v=3","gravatar_id":"","url":"https://api.github.com/users/welshjf","html_url":"https://github.com/welshjf","followers_url":"https://api.github.com/users/welshjf/followers","following_url":"https://api.github.com/users/welshjf/following{/other_user}","gists_url":"https://api.github.com/users/welshjf/gists{/gist_id}","starred_url":"https://api.github.com/users/welshjf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/welshjf/subscriptions","organizations_url":"https://api.github.com/users/welshjf/orgs","repos_url":"https://api.github.com/users/welshjf/repos","events_url":"https://api.github.com/users/welshjf/events{/privacy}","received_events_url":"https://api.github.com/users/welshjf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/welshjf/python-qrcode","description":"Python QR Code image generator","fork":true,"url":"https://api.github.com/repos/welshjf/python-qrcode","forks_url":"https://api.github.com/repos/welshjf/python-qrcode/forks","keys_url":"https://api.github.com/repos/welshjf/python-qrcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/welshjf/python-qrcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/welshjf/python-qrcode/teams","hooks_url":"https://api.github.com/repos/welshjf/python-qrcode/hooks","issue_events_url":"https://api.github.com/repos/welshjf/python-qrcode/issues/events{/number}","events_url":"https://api.github.com/repos/welshjf/python-qrcode/events","assignees_url":"https://api.github.com/repos/welshjf/python-qrcode/assignees{/user}","branches_url":"https://api.github.com/repos/welshjf/python-qrcode/branches{/branch}","tags_url":"https://api.github.com/repos/welshjf/python-qrcode/tags","blobs_url":"https://api.github.com/repos/welshjf/python-qrcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/welshjf/python-qrcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/welshjf/python-qrcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/welshjf/python-qrcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/welshjf/python-qrcode/statuses/{sha}","languages_url":"https://api.github.com/repos/welshjf/python-qrcode/languages","stargazers_url":"https://api.github.com/repos/welshjf/python-qrcode/stargazers","contributors_url":"https://api.github.com/repos/welshjf/python-qrcode/contributors","subscribers_url":"https://api.github.com/repos/welshjf/python-qrcode/subscribers","subscription_url":"https://api.github.com/repos/welshjf/python-qrcode/subscription","commits_url":"https://api.github.com/repos/welshjf/python-qrcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/welshjf/python-qrcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/welshjf/python-qrcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/welshjf/python-qrcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/welshjf/python-qrcode/contents/{+path}","compare_url":"https://api.github.com/repos/welshjf/python-qrcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/welshjf/python-qrcode/merges","archive_url":"https://api.github.com/repos/welshjf/python-qrcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/welshjf/python-qrcode/downloads","issues_url":"https://api.github.com/repos/welshjf/python-qrcode/issues{/number}","pulls_url":"https://api.github.com/repos/welshjf/python-qrcode/pulls{/number}","milestones_url":"https://api.github.com/repos/welshjf/python-qrcode/milestones{/number}","notifications_url":"https://api.github.com/repos/welshjf/python-qrcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/welshjf/python-qrcode/labels{/name}","releases_url":"https://api.github.com/repos/welshjf/python-qrcode/releases{/id}","deployments_url":"https://api.github.com/repos/welshjf/python-qrcode/deployments","created_at":"2014-06-16T01:51:52Z","updated_at":"2014-06-30T14:02:33Z","pushed_at":"2015-05-26T04:47:10Z","git_url":"git://github.com/welshjf/python-qrcode.git","ssh_url":"git@github.com:welshjf/python-qrcode.git","clone_url":"https://github.com/welshjf/python-qrcode.git","svn_url":"https://github.com/welshjf/python-qrcode","homepage":"https://pypi.python.org/pypi/qrcode","size":309,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"lincolnloop:master","ref":"master","sha":"97be1b444ac5522b6eef7c9b8e9bcc66f6cb616a","user":{"login":"lincolnloop","id":1964,"avatar_url":"https://avatars.githubusercontent.com/u/1964?v=3","gravatar_id":"","url":"https://api.github.com/users/lincolnloop","html_url":"https://github.com/lincolnloop","followers_url":"https://api.github.com/users/lincolnloop/followers","following_url":"https://api.github.com/users/lincolnloop/following{/other_user}","gists_url":"https://api.github.com/users/lincolnloop/gists{/gist_id}","starred_url":"https://api.github.com/users/lincolnloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincolnloop/subscriptions","organizations_url":"https://api.github.com/users/lincolnloop/orgs","repos_url":"https://api.github.com/users/lincolnloop/repos","events_url":"https://api.github.com/users/lincolnloop/events{/privacy}","received_events_url":"https://api.github.com/users/lincolnloop/received_events","type":"Organization","site_admin":false},"repo":{"id":2747590,"name":"python-qrcode","full_name":"lincolnloop/python-qrcode","owner":{"login":"lincolnloop","id":1964,"avatar_url":"https://avatars.githubusercontent.com/u/1964?v=3","gravatar_id":"","url":"https://api.github.com/users/lincolnloop","html_url":"https://github.com/lincolnloop","followers_url":"https://api.github.com/users/lincolnloop/followers","following_url":"https://api.github.com/users/lincolnloop/following{/other_user}","gists_url":"https://api.github.com/users/lincolnloop/gists{/gist_id}","starred_url":"https://api.github.com/users/lincolnloop/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincolnloop/subscriptions","organizations_url":"https://api.github.com/users/lincolnloop/orgs","repos_url":"https://api.github.com/users/lincolnloop/repos","events_url":"https://api.github.com/users/lincolnloop/events{/privacy}","received_events_url":"https://api.github.com/users/lincolnloop/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lincolnloop/python-qrcode","description":"Python QR Code image generator","fork":false,"url":"https://api.github.com/repos/lincolnloop/python-qrcode","forks_url":"https://api.github.com/repos/lincolnloop/python-qrcode/forks","keys_url":"https://api.github.com/repos/lincolnloop/python-qrcode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lincolnloop/python-qrcode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lincolnloop/python-qrcode/teams","hooks_url":"https://api.github.com/repos/lincolnloop/python-qrcode/hooks","issue_events_url":"https://api.github.com/repos/lincolnloop/python-qrcode/issues/events{/number}","events_url":"https://api.github.com/repos/lincolnloop/python-qrcode/events","assignees_url":"https://api.github.com/repos/lincolnloop/python-qrcode/assignees{/user}","branches_url":"https://api.github.com/repos/lincolnloop/python-qrcode/branches{/branch}","tags_url":"https://api.github.com/repos/lincolnloop/python-qrcode/tags","blobs_url":"https://api.github.com/repos/lincolnloop/python-qrcode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lincolnloop/python-qrcode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lincolnloop/python-qrcode/git/refs{/sha}","trees_url":"https://api.github.com/repos/lincolnloop/python-qrcode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lincolnloop/python-qrcode/statuses/{sha}","languages_url":"https://api.github.com/repos/lincolnloop/python-qrcode/languages","stargazers_url":"https://api.github.com/repos/lincolnloop/python-qrcode/stargazers","contributors_url":"https://api.github.com/repos/lincolnloop/python-qrcode/contributors","subscribers_url":"https://api.github.com/repos/lincolnloop/python-qrcode/subscribers","subscription_url":"https://api.github.com/repos/lincolnloop/python-qrcode/subscription","commits_url":"https://api.github.com/repos/lincolnloop/python-qrcode/commits{/sha}","git_commits_url":"https://api.github.com/repos/lincolnloop/python-qrcode/git/commits{/sha}","comments_url":"https://api.github.com/repos/lincolnloop/python-qrcode/comments{/number}","issue_comment_url":"https://api.github.com/repos/lincolnloop/python-qrcode/issues/comments{/number}","contents_url":"https://api.github.com/repos/lincolnloop/python-qrcode/contents/{+path}","compare_url":"https://api.github.com/repos/lincolnloop/python-qrcode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lincolnloop/python-qrcode/merges","archive_url":"https://api.github.com/repos/lincolnloop/python-qrcode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lincolnloop/python-qrcode/downloads","issues_url":"https://api.github.com/repos/lincolnloop/python-qrcode/issues{/number}","pulls_url":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls{/number}","milestones_url":"https://api.github.com/repos/lincolnloop/python-qrcode/milestones{/number}","notifications_url":"https://api.github.com/repos/lincolnloop/python-qrcode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lincolnloop/python-qrcode/labels{/name}","releases_url":"https://api.github.com/repos/lincolnloop/python-qrcode/releases{/id}","deployments_url":"https://api.github.com/repos/lincolnloop/python-qrcode/deployments","created_at":"2011-11-10T09:36:22Z","updated_at":"2016-01-24T02:22:16Z","pushed_at":"2016-01-24T21:15:02Z","git_url":"git://github.com/lincolnloop/python-qrcode.git","ssh_url":"git@github.com:lincolnloop/python-qrcode.git","clone_url":"https://github.com/lincolnloop/python-qrcode.git","svn_url":"https://github.com/lincolnloop/python-qrcode","homepage":"https://pypi.python.org/pypi/qrcode","size":294,"stargazers_count":793,"watchers_count":793,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":182,"mirror_url":null,"open_issues_count":11,"forks":182,"open_issues":11,"watchers":793,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/80"},"html":{"href":"https://github.com/lincolnloop/python-qrcode/pull/80"},"issue":{"href":"https://api.github.com/repos/lincolnloop/python-qrcode/issues/80"},"comments":{"href":"https://api.github.com/repos/lincolnloop/python-qrcode/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/lincolnloop/python-qrcode/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/lincolnloop/python-qrcode/statuses/53d218f4370067894db0f8c1816a7f2839c23043"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":3,"review_comments":0,"commits":1,"additions":5,"deletions":1,"changed_files":1}}