{"action":"created","comment":{"url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/comments/52441362","id":52441362,"diff_hunk":"@@ -57,4 +61,6 @@ def decode(encoded):\n     # If unicode comes in, strange TypeError is thrown from unicode.translate\n     # because it differs from str.translate. Base64 and querystringsafe_base64\n     # are ascii-compatible anyway so convert to str.\n-    return urlsafe_b64decode(str(encoded).replace('.', '='))\n+    if PY2:\n+        return urlsafe_b64decode(str(encoded).replace('.', '='))\n+    return urlsafe_b64decode(bytes(encoded, 'ascii').replace(b'.', b'='))","path":"querystringsafe_base64.py","position":30,"original_position":30,"commit_id":"dec7b931e5a741b4a114ce2b2ffea3052802a04a","original_commit_id":"dec7b931e5a741b4a114ce2b2ffea3052802a04a","user":{"login":"mmaslowskicc","id":10533721,"avatar_url":"https://avatars.githubusercontent.com/u/10533721?v=3","gravatar_id":"","url":"https://api.github.com/users/mmaslowskicc","html_url":"https://github.com/mmaslowskicc","followers_url":"https://api.github.com/users/mmaslowskicc/followers","following_url":"https://api.github.com/users/mmaslowskicc/following{/other_user}","gists_url":"https://api.github.com/users/mmaslowskicc/gists{/gist_id}","starred_url":"https://api.github.com/users/mmaslowskicc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmaslowskicc/subscriptions","organizations_url":"https://api.github.com/users/mmaslowskicc/orgs","repos_url":"https://api.github.com/users/mmaslowskicc/repos","events_url":"https://api.github.com/users/mmaslowskicc/events{/privacy}","received_events_url":"https://api.github.com/users/mmaslowskicc/received_events","type":"User","site_admin":false},"body":"So only Unicode strings work as input on Python 3?","created_at":"2016-02-10T10:45:22Z","updated_at":"2016-02-10T10:45:22Z","html_url":"https://github.com/ClearcodeHQ/querystringsafe_base64/pull/11#discussion_r52441362","pull_request_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/comments/52441362"},"html":{"href":"https://github.com/ClearcodeHQ/querystringsafe_base64/pull/11#discussion_r52441362"},"pull_request":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11","id":58872703,"html_url":"https://github.com/ClearcodeHQ/querystringsafe_base64/pull/11","diff_url":"https://github.com/ClearcodeHQ/querystringsafe_base64/pull/11.diff","patch_url":"https://github.com/ClearcodeHQ/querystringsafe_base64/pull/11.patch","issue_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/issues/11","number":11,"state":"open","locked":false,"title":"Support for python3","user":{"login":"trojkat","id":97532,"avatar_url":"https://avatars.githubusercontent.com/u/97532?v=3","gravatar_id":"","url":"https://api.github.com/users/trojkat","html_url":"https://github.com/trojkat","followers_url":"https://api.github.com/users/trojkat/followers","following_url":"https://api.github.com/users/trojkat/following{/other_user}","gists_url":"https://api.github.com/users/trojkat/gists{/gist_id}","starred_url":"https://api.github.com/users/trojkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trojkat/subscriptions","organizations_url":"https://api.github.com/users/trojkat/orgs","repos_url":"https://api.github.com/users/trojkat/repos","events_url":"https://api.github.com/users/trojkat/events{/privacy}","received_events_url":"https://api.github.com/users/trojkat/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-10T10:38:19Z","updated_at":"2016-02-10T10:45:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11/commits","review_comments_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11/comments","review_comment_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/issues/11/comments","statuses_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/statuses/dec7b931e5a741b4a114ce2b2ffea3052802a04a","head":{"label":"trojkat:master","ref":"master","sha":"dec7b931e5a741b4a114ce2b2ffea3052802a04a","user":{"login":"trojkat","id":97532,"avatar_url":"https://avatars.githubusercontent.com/u/97532?v=3","gravatar_id":"","url":"https://api.github.com/users/trojkat","html_url":"https://github.com/trojkat","followers_url":"https://api.github.com/users/trojkat/followers","following_url":"https://api.github.com/users/trojkat/following{/other_user}","gists_url":"https://api.github.com/users/trojkat/gists{/gist_id}","starred_url":"https://api.github.com/users/trojkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trojkat/subscriptions","organizations_url":"https://api.github.com/users/trojkat/orgs","repos_url":"https://api.github.com/users/trojkat/repos","events_url":"https://api.github.com/users/trojkat/events{/privacy}","received_events_url":"https://api.github.com/users/trojkat/received_events","type":"User","site_admin":false},"repo":{"id":51432891,"name":"querystringsafe_base64","full_name":"trojkat/querystringsafe_base64","owner":{"login":"trojkat","id":97532,"avatar_url":"https://avatars.githubusercontent.com/u/97532?v=3","gravatar_id":"","url":"https://api.github.com/users/trojkat","html_url":"https://github.com/trojkat","followers_url":"https://api.github.com/users/trojkat/followers","following_url":"https://api.github.com/users/trojkat/following{/other_user}","gists_url":"https://api.github.com/users/trojkat/gists{/gist_id}","starred_url":"https://api.github.com/users/trojkat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trojkat/subscriptions","organizations_url":"https://api.github.com/users/trojkat/orgs","repos_url":"https://api.github.com/users/trojkat/repos","events_url":"https://api.github.com/users/trojkat/events{/privacy}","received_events_url":"https://api.github.com/users/trojkat/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trojkat/querystringsafe_base64","description":"Encoding and decoding arbitrary strings into strings that are safe to put into a URL query param.","fork":true,"url":"https://api.github.com/repos/trojkat/querystringsafe_base64","forks_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/forks","keys_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/teams","hooks_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/hooks","issue_events_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/issues/events{/number}","events_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/events","assignees_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/assignees{/user}","branches_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/branches{/branch}","tags_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/tags","blobs_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/git/refs{/sha}","trees_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/statuses/{sha}","languages_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/languages","stargazers_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/stargazers","contributors_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/contributors","subscribers_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/subscribers","subscription_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/subscription","commits_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/commits{/sha}","git_commits_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/git/commits{/sha}","comments_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/comments{/number}","issue_comment_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/issues/comments{/number}","contents_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/contents/{+path}","compare_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/merges","archive_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/downloads","issues_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/issues{/number}","pulls_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/pulls{/number}","milestones_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/milestones{/number}","notifications_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/labels{/name}","releases_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/releases{/id}","deployments_url":"https://api.github.com/repos/trojkat/querystringsafe_base64/deployments","created_at":"2016-02-10T09:57:04Z","updated_at":"2016-02-10T09:57:05Z","pushed_at":"2016-02-10T10:35:31Z","git_url":"git://github.com/trojkat/querystringsafe_base64.git","ssh_url":"git@github.com:trojkat/querystringsafe_base64.git","clone_url":"https://github.com/trojkat/querystringsafe_base64.git","svn_url":"https://github.com/trojkat/querystringsafe_base64","homepage":"","size":20,"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":"master"}},"base":{"label":"ClearcodeHQ:master","ref":"master","sha":"b7b77114df4c7b25074708290e8b8f70dc674fb9","user":{"login":"ClearcodeHQ","id":3015752,"avatar_url":"https://avatars.githubusercontent.com/u/3015752?v=3","gravatar_id":"","url":"https://api.github.com/users/ClearcodeHQ","html_url":"https://github.com/ClearcodeHQ","followers_url":"https://api.github.com/users/ClearcodeHQ/followers","following_url":"https://api.github.com/users/ClearcodeHQ/following{/other_user}","gists_url":"https://api.github.com/users/ClearcodeHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearcodeHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearcodeHQ/subscriptions","organizations_url":"https://api.github.com/users/ClearcodeHQ/orgs","repos_url":"https://api.github.com/users/ClearcodeHQ/repos","events_url":"https://api.github.com/users/ClearcodeHQ/events{/privacy}","received_events_url":"https://api.github.com/users/ClearcodeHQ/received_events","type":"Organization","site_admin":false},"repo":{"id":51291720,"name":"querystringsafe_base64","full_name":"ClearcodeHQ/querystringsafe_base64","owner":{"login":"ClearcodeHQ","id":3015752,"avatar_url":"https://avatars.githubusercontent.com/u/3015752?v=3","gravatar_id":"","url":"https://api.github.com/users/ClearcodeHQ","html_url":"https://github.com/ClearcodeHQ","followers_url":"https://api.github.com/users/ClearcodeHQ/followers","following_url":"https://api.github.com/users/ClearcodeHQ/following{/other_user}","gists_url":"https://api.github.com/users/ClearcodeHQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ClearcodeHQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ClearcodeHQ/subscriptions","organizations_url":"https://api.github.com/users/ClearcodeHQ/orgs","repos_url":"https://api.github.com/users/ClearcodeHQ/repos","events_url":"https://api.github.com/users/ClearcodeHQ/events{/privacy}","received_events_url":"https://api.github.com/users/ClearcodeHQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ClearcodeHQ/querystringsafe_base64","description":"Encoding and decoding arbitrary strings into strings that are safe to put into a URL query param.","fork":false,"url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64","forks_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/forks","keys_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/teams","hooks_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/hooks","issue_events_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/issues/events{/number}","events_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/events","assignees_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/assignees{/user}","branches_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/branches{/branch}","tags_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/tags","blobs_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/git/refs{/sha}","trees_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/statuses/{sha}","languages_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/languages","stargazers_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/stargazers","contributors_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/contributors","subscribers_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/subscribers","subscription_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/subscription","commits_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/commits{/sha}","git_commits_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/git/commits{/sha}","comments_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/comments{/number}","issue_comment_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/issues/comments{/number}","contents_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/contents/{+path}","compare_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/merges","archive_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/downloads","issues_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/issues{/number}","pulls_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls{/number}","milestones_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/milestones{/number}","notifications_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/labels{/name}","releases_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/releases{/id}","deployments_url":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/deployments","created_at":"2016-02-08T10:32:58Z","updated_at":"2016-02-09T15:20:09Z","pushed_at":"2016-02-10T10:38:19Z","git_url":"git://github.com/ClearcodeHQ/querystringsafe_base64.git","ssh_url":"git@github.com:ClearcodeHQ/querystringsafe_base64.git","clone_url":"https://github.com/ClearcodeHQ/querystringsafe_base64.git","svn_url":"https://github.com/ClearcodeHQ/querystringsafe_base64","homepage":"","size":23,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11"},"html":{"href":"https://github.com/ClearcodeHQ/querystringsafe_base64/pull/11"},"issue":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/issues/11"},"comments":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/ClearcodeHQ/querystringsafe_base64/statuses/dec7b931e5a741b4a114ce2b2ffea3052802a04a"}}}}