{"action":"closed","number":65,"pull_request":{"url":"https://api.github.com/repos/scoder/lupa/pulls/65","id":48950731,"html_url":"https://github.com/scoder/lupa/pull/65","diff_url":"https://github.com/scoder/lupa/pull/65.diff","patch_url":"https://github.com/scoder/lupa/pull/65.patch","issue_url":"https://api.github.com/repos/scoder/lupa/issues/65","number":65,"state":"closed","locked":false,"title":"fixed calling __str__ in Python 3 when encoding is None","user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"body":"In Python 3 `__str__` returns unicode, so `(<unicode>s).encode(runtime._encoding)` raises an error when encoding is None (`TypeError: expected bytes, NoneType found`). This is fixed by falling back to UTF-8: it can represent all unicode data and that's what `_LuaObject` uses in its `__str__` when encoding is None.\r\n\r\nThis PR includes all changes from https://github.com/scoder/lupa/pull/63.","created_at":"2015-10-28T00:21:20Z","updated_at":"2016-01-23T15:03:35Z","closed_at":"2016-01-23T15:03:35Z","merged_at":"2016-01-23T15:03:35Z","merge_commit_sha":"331ecd8fb6f76872583f6fcce8a990ba7a8c56f3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scoder/lupa/pulls/65/commits","review_comments_url":"https://api.github.com/repos/scoder/lupa/pulls/65/comments","review_comment_url":"https://api.github.com/repos/scoder/lupa/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scoder/lupa/issues/65/comments","statuses_url":"https://api.github.com/repos/scoder/lupa/statuses/7ffd61aa990ec28e6a336a2b3bc2a884922e6e3a","head":{"label":"kmike:str-encoding-none","ref":"str-encoding-none","sha":"7ffd61aa990ec28e6a336a2b3bc2a884922e6e3a","user":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"repo":{"id":25356925,"name":"lupa","full_name":"kmike/lupa","owner":{"login":"kmike","id":107893,"avatar_url":"https://avatars.githubusercontent.com/u/107893?v=3","gravatar_id":"","url":"https://api.github.com/users/kmike","html_url":"https://github.com/kmike","followers_url":"https://api.github.com/users/kmike/followers","following_url":"https://api.github.com/users/kmike/following{/other_user}","gists_url":"https://api.github.com/users/kmike/gists{/gist_id}","starred_url":"https://api.github.com/users/kmike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmike/subscriptions","organizations_url":"https://api.github.com/users/kmike/orgs","repos_url":"https://api.github.com/users/kmike/repos","events_url":"https://api.github.com/users/kmike/events{/privacy}","received_events_url":"https://api.github.com/users/kmike/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmike/lupa","description":"Lua in Python","fork":true,"url":"https://api.github.com/repos/kmike/lupa","forks_url":"https://api.github.com/repos/kmike/lupa/forks","keys_url":"https://api.github.com/repos/kmike/lupa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmike/lupa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmike/lupa/teams","hooks_url":"https://api.github.com/repos/kmike/lupa/hooks","issue_events_url":"https://api.github.com/repos/kmike/lupa/issues/events{/number}","events_url":"https://api.github.com/repos/kmike/lupa/events","assignees_url":"https://api.github.com/repos/kmike/lupa/assignees{/user}","branches_url":"https://api.github.com/repos/kmike/lupa/branches{/branch}","tags_url":"https://api.github.com/repos/kmike/lupa/tags","blobs_url":"https://api.github.com/repos/kmike/lupa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmike/lupa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmike/lupa/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmike/lupa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmike/lupa/statuses/{sha}","languages_url":"https://api.github.com/repos/kmike/lupa/languages","stargazers_url":"https://api.github.com/repos/kmike/lupa/stargazers","contributors_url":"https://api.github.com/repos/kmike/lupa/contributors","subscribers_url":"https://api.github.com/repos/kmike/lupa/subscribers","subscription_url":"https://api.github.com/repos/kmike/lupa/subscription","commits_url":"https://api.github.com/repos/kmike/lupa/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmike/lupa/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmike/lupa/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmike/lupa/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmike/lupa/contents/{+path}","compare_url":"https://api.github.com/repos/kmike/lupa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmike/lupa/merges","archive_url":"https://api.github.com/repos/kmike/lupa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmike/lupa/downloads","issues_url":"https://api.github.com/repos/kmike/lupa/issues{/number}","pulls_url":"https://api.github.com/repos/kmike/lupa/pulls{/number}","milestones_url":"https://api.github.com/repos/kmike/lupa/milestones{/number}","notifications_url":"https://api.github.com/repos/kmike/lupa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmike/lupa/labels{/name}","releases_url":"https://api.github.com/repos/kmike/lupa/releases{/id}","deployments_url":"https://api.github.com/repos/kmike/lupa/deployments","created_at":"2014-10-17T12:20:58Z","updated_at":"2014-11-01T10:30:44Z","pushed_at":"2015-10-28T19:44:02Z","git_url":"git://github.com/kmike/lupa.git","ssh_url":"git@github.com:kmike/lupa.git","clone_url":"https://github.com/kmike/lupa.git","svn_url":"https://github.com/kmike/lupa","homepage":"http://pypi.python.org/pypi/lupa","size":709,"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":"scoder:master","ref":"master","sha":"c08bf6e6a853a56858e0dc219ba6bcfa99bcaef0","user":{"login":"scoder","id":491659,"avatar_url":"https://avatars.githubusercontent.com/u/491659?v=3","gravatar_id":"","url":"https://api.github.com/users/scoder","html_url":"https://github.com/scoder","followers_url":"https://api.github.com/users/scoder/followers","following_url":"https://api.github.com/users/scoder/following{/other_user}","gists_url":"https://api.github.com/users/scoder/gists{/gist_id}","starred_url":"https://api.github.com/users/scoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoder/subscriptions","organizations_url":"https://api.github.com/users/scoder/orgs","repos_url":"https://api.github.com/users/scoder/repos","events_url":"https://api.github.com/users/scoder/events{/privacy}","received_events_url":"https://api.github.com/users/scoder/received_events","type":"User","site_admin":false},"repo":{"id":1347652,"name":"lupa","full_name":"scoder/lupa","owner":{"login":"scoder","id":491659,"avatar_url":"https://avatars.githubusercontent.com/u/491659?v=3","gravatar_id":"","url":"https://api.github.com/users/scoder","html_url":"https://github.com/scoder","followers_url":"https://api.github.com/users/scoder/followers","following_url":"https://api.github.com/users/scoder/following{/other_user}","gists_url":"https://api.github.com/users/scoder/gists{/gist_id}","starred_url":"https://api.github.com/users/scoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoder/subscriptions","organizations_url":"https://api.github.com/users/scoder/orgs","repos_url":"https://api.github.com/users/scoder/repos","events_url":"https://api.github.com/users/scoder/events{/privacy}","received_events_url":"https://api.github.com/users/scoder/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scoder/lupa","description":"Lua in Python","fork":false,"url":"https://api.github.com/repos/scoder/lupa","forks_url":"https://api.github.com/repos/scoder/lupa/forks","keys_url":"https://api.github.com/repos/scoder/lupa/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scoder/lupa/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scoder/lupa/teams","hooks_url":"https://api.github.com/repos/scoder/lupa/hooks","issue_events_url":"https://api.github.com/repos/scoder/lupa/issues/events{/number}","events_url":"https://api.github.com/repos/scoder/lupa/events","assignees_url":"https://api.github.com/repos/scoder/lupa/assignees{/user}","branches_url":"https://api.github.com/repos/scoder/lupa/branches{/branch}","tags_url":"https://api.github.com/repos/scoder/lupa/tags","blobs_url":"https://api.github.com/repos/scoder/lupa/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scoder/lupa/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scoder/lupa/git/refs{/sha}","trees_url":"https://api.github.com/repos/scoder/lupa/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scoder/lupa/statuses/{sha}","languages_url":"https://api.github.com/repos/scoder/lupa/languages","stargazers_url":"https://api.github.com/repos/scoder/lupa/stargazers","contributors_url":"https://api.github.com/repos/scoder/lupa/contributors","subscribers_url":"https://api.github.com/repos/scoder/lupa/subscribers","subscription_url":"https://api.github.com/repos/scoder/lupa/subscription","commits_url":"https://api.github.com/repos/scoder/lupa/commits{/sha}","git_commits_url":"https://api.github.com/repos/scoder/lupa/git/commits{/sha}","comments_url":"https://api.github.com/repos/scoder/lupa/comments{/number}","issue_comment_url":"https://api.github.com/repos/scoder/lupa/issues/comments{/number}","contents_url":"https://api.github.com/repos/scoder/lupa/contents/{+path}","compare_url":"https://api.github.com/repos/scoder/lupa/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scoder/lupa/merges","archive_url":"https://api.github.com/repos/scoder/lupa/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scoder/lupa/downloads","issues_url":"https://api.github.com/repos/scoder/lupa/issues{/number}","pulls_url":"https://api.github.com/repos/scoder/lupa/pulls{/number}","milestones_url":"https://api.github.com/repos/scoder/lupa/milestones{/number}","notifications_url":"https://api.github.com/repos/scoder/lupa/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scoder/lupa/labels{/name}","releases_url":"https://api.github.com/repos/scoder/lupa/releases{/id}","deployments_url":"https://api.github.com/repos/scoder/lupa/deployments","created_at":"2011-02-09T19:16:15Z","updated_at":"2016-01-12T00:29:47Z","pushed_at":"2016-01-23T15:03:35Z","git_url":"git://github.com/scoder/lupa.git","ssh_url":"git@github.com:scoder/lupa.git","clone_url":"https://github.com/scoder/lupa.git","svn_url":"https://github.com/scoder/lupa","homepage":"http://pypi.python.org/pypi/lupa","size":458,"stargazers_count":262,"watchers_count":262,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":18,"forks":25,"open_issues":18,"watchers":262,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scoder/lupa/pulls/65"},"html":{"href":"https://github.com/scoder/lupa/pull/65"},"issue":{"href":"https://api.github.com/repos/scoder/lupa/issues/65"},"comments":{"href":"https://api.github.com/repos/scoder/lupa/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/scoder/lupa/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/scoder/lupa/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scoder/lupa/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/scoder/lupa/statuses/7ffd61aa990ec28e6a336a2b3bc2a884922e6e3a"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"scoder","id":491659,"avatar_url":"https://avatars.githubusercontent.com/u/491659?v=3","gravatar_id":"","url":"https://api.github.com/users/scoder","html_url":"https://github.com/scoder","followers_url":"https://api.github.com/users/scoder/followers","following_url":"https://api.github.com/users/scoder/following{/other_user}","gists_url":"https://api.github.com/users/scoder/gists{/gist_id}","starred_url":"https://api.github.com/users/scoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scoder/subscriptions","organizations_url":"https://api.github.com/users/scoder/orgs","repos_url":"https://api.github.com/users/scoder/repos","events_url":"https://api.github.com/users/scoder/events{/privacy}","received_events_url":"https://api.github.com/users/scoder/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":5,"additions":79,"deletions":6,"changed_files":2}}