{"action":"opened","number":536,"pull_request":{"url":"https://api.github.com/repos/rackspace/pyrax/pulls/536","id":28686152,"html_url":"https://github.com/rackspace/pyrax/pull/536","diff_url":"https://github.com/rackspace/pyrax/pull/536.diff","patch_url":"https://github.com/rackspace/pyrax/pull/536.patch","issue_url":"https://api.github.com/repos/rackspace/pyrax/issues/536","number":536,"state":"open","locked":false,"title":"Handle the distinction between unicode and bytes","user":{"login":"timheap","id":132147,"avatar_url":"https://avatars.githubusercontent.com/u/132147?v=3","gravatar_id":"","url":"https://api.github.com/users/timheap","html_url":"https://github.com/timheap","followers_url":"https://api.github.com/users/timheap/followers","following_url":"https://api.github.com/users/timheap/following{/other_user}","gists_url":"https://api.github.com/users/timheap/gists{/gist_id}","starred_url":"https://api.github.com/users/timheap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timheap/subscriptions","organizations_url":"https://api.github.com/users/timheap/orgs","repos_url":"https://api.github.com/users/timheap/repos","events_url":"https://api.github.com/users/timheap/events{/privacy}","received_events_url":"https://api.github.com/users/timheap/received_events","type":"User","site_admin":false},"body":"Python 2 is a lot more forgiving when accepting either unicode strings or byte strings. Python 3 is not forgiving at all.\r\n\r\nAll strings are now unicode strings unless explicitly set otherwise. Things that should be byte strings include:\r\n\r\n* File contents, unless they are known to be text;\r\n* Input data for checksums; and\r\n* URL pieces.\r\n\r\n`unicode_literals` has been imported project wide to ensure consistent behaviour between Python 2 and 3.","created_at":"2015-02-04T23:34:37Z","updated_at":"2015-02-04T23:34:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rackspace/pyrax/pulls/536/commits","review_comments_url":"https://api.github.com/repos/rackspace/pyrax/pulls/536/comments","review_comment_url":"https://api.github.com/repos/rackspace/pyrax/pulls/comments/{number}","comments_url":"https://api.github.com/repos/rackspace/pyrax/issues/536/comments","statuses_url":"https://api.github.com/repos/rackspace/pyrax/statuses/909566196c3764a2d2df6c7636d79030eb2b98be","head":{"label":"takeflight:python3/unicode","ref":"python3/unicode","sha":"909566196c3764a2d2df6c7636d79030eb2b98be","user":{"login":"takeflight","id":7663899,"avatar_url":"https://avatars.githubusercontent.com/u/7663899?v=3","gravatar_id":"","url":"https://api.github.com/users/takeflight","html_url":"https://github.com/takeflight","followers_url":"https://api.github.com/users/takeflight/followers","following_url":"https://api.github.com/users/takeflight/following{/other_user}","gists_url":"https://api.github.com/users/takeflight/gists{/gist_id}","starred_url":"https://api.github.com/users/takeflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeflight/subscriptions","organizations_url":"https://api.github.com/users/takeflight/orgs","repos_url":"https://api.github.com/users/takeflight/repos","events_url":"https://api.github.com/users/takeflight/events{/privacy}","received_events_url":"https://api.github.com/users/takeflight/received_events","type":"Organization","site_admin":false},"repo":{"id":30006740,"name":"pyrax","full_name":"takeflight/pyrax","owner":{"login":"takeflight","id":7663899,"avatar_url":"https://avatars.githubusercontent.com/u/7663899?v=3","gravatar_id":"","url":"https://api.github.com/users/takeflight","html_url":"https://github.com/takeflight","followers_url":"https://api.github.com/users/takeflight/followers","following_url":"https://api.github.com/users/takeflight/following{/other_user}","gists_url":"https://api.github.com/users/takeflight/gists{/gist_id}","starred_url":"https://api.github.com/users/takeflight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/takeflight/subscriptions","organizations_url":"https://api.github.com/users/takeflight/orgs","repos_url":"https://api.github.com/users/takeflight/repos","events_url":"https://api.github.com/users/takeflight/events{/privacy}","received_events_url":"https://api.github.com/users/takeflight/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/takeflight/pyrax","description":"The Python SDK for the Rackspace Cloud","fork":true,"url":"https://api.github.com/repos/takeflight/pyrax","forks_url":"https://api.github.com/repos/takeflight/pyrax/forks","keys_url":"https://api.github.com/repos/takeflight/pyrax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/takeflight/pyrax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/takeflight/pyrax/teams","hooks_url":"https://api.github.com/repos/takeflight/pyrax/hooks","issue_events_url":"https://api.github.com/repos/takeflight/pyrax/issues/events{/number}","events_url":"https://api.github.com/repos/takeflight/pyrax/events","assignees_url":"https://api.github.com/repos/takeflight/pyrax/assignees{/user}","branches_url":"https://api.github.com/repos/takeflight/pyrax/branches{/branch}","tags_url":"https://api.github.com/repos/takeflight/pyrax/tags","blobs_url":"https://api.github.com/repos/takeflight/pyrax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/takeflight/pyrax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/takeflight/pyrax/git/refs{/sha}","trees_url":"https://api.github.com/repos/takeflight/pyrax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/takeflight/pyrax/statuses/{sha}","languages_url":"https://api.github.com/repos/takeflight/pyrax/languages","stargazers_url":"https://api.github.com/repos/takeflight/pyrax/stargazers","contributors_url":"https://api.github.com/repos/takeflight/pyrax/contributors","subscribers_url":"https://api.github.com/repos/takeflight/pyrax/subscribers","subscription_url":"https://api.github.com/repos/takeflight/pyrax/subscription","commits_url":"https://api.github.com/repos/takeflight/pyrax/commits{/sha}","git_commits_url":"https://api.github.com/repos/takeflight/pyrax/git/commits{/sha}","comments_url":"https://api.github.com/repos/takeflight/pyrax/comments{/number}","issue_comment_url":"https://api.github.com/repos/takeflight/pyrax/issues/comments/{number}","contents_url":"https://api.github.com/repos/takeflight/pyrax/contents/{+path}","compare_url":"https://api.github.com/repos/takeflight/pyrax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/takeflight/pyrax/merges","archive_url":"https://api.github.com/repos/takeflight/pyrax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/takeflight/pyrax/downloads","issues_url":"https://api.github.com/repos/takeflight/pyrax/issues{/number}","pulls_url":"https://api.github.com/repos/takeflight/pyrax/pulls{/number}","milestones_url":"https://api.github.com/repos/takeflight/pyrax/milestones{/number}","notifications_url":"https://api.github.com/repos/takeflight/pyrax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/takeflight/pyrax/labels{/name}","releases_url":"https://api.github.com/repos/takeflight/pyrax/releases{/id}","created_at":"2015-01-29T06:23:58Z","updated_at":"2015-02-04T23:15:46Z","pushed_at":"2015-02-04T23:33:25Z","git_url":"git://github.com/takeflight/pyrax.git","ssh_url":"git@github.com:takeflight/pyrax.git","clone_url":"https://github.com/takeflight/pyrax.git","svn_url":"https://github.com/takeflight/pyrax","homepage":"developer.rackspace.com","size":9602,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rackspace:working","ref":"working","sha":"f7b64a743fe948e11aa4909d62e5526878855489","user":{"login":"rackspace","id":3949923,"avatar_url":"https://avatars.githubusercontent.com/u/3949923?v=3","gravatar_id":"","url":"https://api.github.com/users/rackspace","html_url":"https://github.com/rackspace","followers_url":"https://api.github.com/users/rackspace/followers","following_url":"https://api.github.com/users/rackspace/following{/other_user}","gists_url":"https://api.github.com/users/rackspace/gists{/gist_id}","starred_url":"https://api.github.com/users/rackspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackspace/subscriptions","organizations_url":"https://api.github.com/users/rackspace/orgs","repos_url":"https://api.github.com/users/rackspace/repos","events_url":"https://api.github.com/users/rackspace/events{/privacy}","received_events_url":"https://api.github.com/users/rackspace/received_events","type":"Organization","site_admin":false},"repo":{"id":5975139,"name":"pyrax","full_name":"rackspace/pyrax","owner":{"login":"rackspace","id":3949923,"avatar_url":"https://avatars.githubusercontent.com/u/3949923?v=3","gravatar_id":"","url":"https://api.github.com/users/rackspace","html_url":"https://github.com/rackspace","followers_url":"https://api.github.com/users/rackspace/followers","following_url":"https://api.github.com/users/rackspace/following{/other_user}","gists_url":"https://api.github.com/users/rackspace/gists{/gist_id}","starred_url":"https://api.github.com/users/rackspace/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rackspace/subscriptions","organizations_url":"https://api.github.com/users/rackspace/orgs","repos_url":"https://api.github.com/users/rackspace/repos","events_url":"https://api.github.com/users/rackspace/events{/privacy}","received_events_url":"https://api.github.com/users/rackspace/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rackspace/pyrax","description":"The Python SDK for the Rackspace Cloud","fork":false,"url":"https://api.github.com/repos/rackspace/pyrax","forks_url":"https://api.github.com/repos/rackspace/pyrax/forks","keys_url":"https://api.github.com/repos/rackspace/pyrax/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rackspace/pyrax/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rackspace/pyrax/teams","hooks_url":"https://api.github.com/repos/rackspace/pyrax/hooks","issue_events_url":"https://api.github.com/repos/rackspace/pyrax/issues/events{/number}","events_url":"https://api.github.com/repos/rackspace/pyrax/events","assignees_url":"https://api.github.com/repos/rackspace/pyrax/assignees{/user}","branches_url":"https://api.github.com/repos/rackspace/pyrax/branches{/branch}","tags_url":"https://api.github.com/repos/rackspace/pyrax/tags","blobs_url":"https://api.github.com/repos/rackspace/pyrax/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rackspace/pyrax/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rackspace/pyrax/git/refs{/sha}","trees_url":"https://api.github.com/repos/rackspace/pyrax/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rackspace/pyrax/statuses/{sha}","languages_url":"https://api.github.com/repos/rackspace/pyrax/languages","stargazers_url":"https://api.github.com/repos/rackspace/pyrax/stargazers","contributors_url":"https://api.github.com/repos/rackspace/pyrax/contributors","subscribers_url":"https://api.github.com/repos/rackspace/pyrax/subscribers","subscription_url":"https://api.github.com/repos/rackspace/pyrax/subscription","commits_url":"https://api.github.com/repos/rackspace/pyrax/commits{/sha}","git_commits_url":"https://api.github.com/repos/rackspace/pyrax/git/commits{/sha}","comments_url":"https://api.github.com/repos/rackspace/pyrax/comments{/number}","issue_comment_url":"https://api.github.com/repos/rackspace/pyrax/issues/comments/{number}","contents_url":"https://api.github.com/repos/rackspace/pyrax/contents/{+path}","compare_url":"https://api.github.com/repos/rackspace/pyrax/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rackspace/pyrax/merges","archive_url":"https://api.github.com/repos/rackspace/pyrax/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rackspace/pyrax/downloads","issues_url":"https://api.github.com/repos/rackspace/pyrax/issues{/number}","pulls_url":"https://api.github.com/repos/rackspace/pyrax/pulls{/number}","milestones_url":"https://api.github.com/repos/rackspace/pyrax/milestones{/number}","notifications_url":"https://api.github.com/repos/rackspace/pyrax/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rackspace/pyrax/labels{/name}","releases_url":"https://api.github.com/repos/rackspace/pyrax/releases{/id}","created_at":"2012-09-27T01:05:57Z","updated_at":"2015-01-22T17:39:23Z","pushed_at":"2015-01-14T19:51:02Z","git_url":"git://github.com/rackspace/pyrax.git","ssh_url":"git@github.com:rackspace/pyrax.git","clone_url":"https://github.com/rackspace/pyrax.git","svn_url":"https://github.com/rackspace/pyrax","homepage":"developer.rackspace.com","size":14632,"stargazers_count":207,"watchers_count":207,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":168,"mirror_url":null,"open_issues_count":46,"forks":168,"open_issues":46,"watchers":207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rackspace/pyrax/pulls/536"},"html":{"href":"https://github.com/rackspace/pyrax/pull/536"},"issue":{"href":"https://api.github.com/repos/rackspace/pyrax/issues/536"},"comments":{"href":"https://api.github.com/repos/rackspace/pyrax/issues/536/comments"},"review_comments":{"href":"https://api.github.com/repos/rackspace/pyrax/pulls/536/comments"},"review_comment":{"href":"https://api.github.com/repos/rackspace/pyrax/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/rackspace/pyrax/pulls/536/commits"},"statuses":{"href":"https://api.github.com/repos/rackspace/pyrax/statuses/909566196c3764a2d2df6c7636d79030eb2b98be"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":79,"deletions":42,"changed_files":41}}