{"action":"closed","number":22,"pull_request":{"url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/22","id":58401154,"html_url":"https://github.com/profitbricks/profitbricks-sdk-python/pull/22","diff_url":"https://github.com/profitbricks/profitbricks-sdk-python/pull/22.diff","patch_url":"https://github.com/profitbricks/profitbricks-sdk-python/pull/22.patch","issue_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/issues/22","number":22,"state":"closed","locked":false,"title":"Fixing method _b() of class ProfitBricksService","user":{"login":"fbrehm","id":360813,"avatar_url":"https://avatars.githubusercontent.com/u/360813?v=3","gravatar_id":"","url":"https://api.github.com/users/fbrehm","html_url":"https://github.com/fbrehm","followers_url":"https://api.github.com/users/fbrehm/followers","following_url":"https://api.github.com/users/fbrehm/following{/other_user}","gists_url":"https://api.github.com/users/fbrehm/gists{/gist_id}","starred_url":"https://api.github.com/users/fbrehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbrehm/subscriptions","organizations_url":"https://api.github.com/users/fbrehm/orgs","repos_url":"https://api.github.com/users/fbrehm/repos","events_url":"https://api.github.com/users/fbrehm/events{/privacy}","received_events_url":"https://api.github.com/users/fbrehm/received_events","type":"User","site_admin":false},"body":"* The old version would lead to a NameError exception, because\r\n  in Python2 class 'bytes' is not known, and in Python3\r\n  class 'unicode is not known.\r\n\r\n```\r\n0 fbrehm@samara:~ > ipython\r\nPython 3.4.3 (default, Jan 18 2016, 15:27:28) \r\nType \"copyright\", \"credits\" or \"license\" for more information.\r\n\r\nIPython 3.2.1 -- An enhanced Interactive Python.\r\n?         -> Introduction and overview of IPython's features.\r\n%quickref -> Quick reference.\r\nhelp      -> Python's own help system.\r\nobject?   -> Details about 'object', use 'object??' for extra details.\r\n\r\nIn [1]: s = 'kkk'\r\n\r\nIn [2]: isinstance(s, unicode)\r\n---------------------------------------------------------------------------\r\nNameError                                 Traceback (most recent call last)\r\n<ipython-input-2-51643d14169e> in <module>()\r\n----> 1 isinstance(s, unicode)\r\n\r\nNameError: name 'unicode' is not defined\r\n\r\nIn [3]:\r\n```","created_at":"2016-02-05T08:38:17Z","updated_at":"2016-02-09T23:27:24Z","closed_at":"2016-02-09T23:27:24Z","merged_at":"2016-02-09T23:27:24Z","merge_commit_sha":"072f60d5bf87bb37a23842683f5296a64622cbdc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/22/commits","review_comments_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/22/comments","review_comment_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/issues/22/comments","statuses_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/statuses/f7dfcd907eddb4fb237970aab45a60beac7ac693","head":{"label":"fbrehm:fix-requests","ref":"fix-requests","sha":"f7dfcd907eddb4fb237970aab45a60beac7ac693","user":{"login":"fbrehm","id":360813,"avatar_url":"https://avatars.githubusercontent.com/u/360813?v=3","gravatar_id":"","url":"https://api.github.com/users/fbrehm","html_url":"https://github.com/fbrehm","followers_url":"https://api.github.com/users/fbrehm/followers","following_url":"https://api.github.com/users/fbrehm/following{/other_user}","gists_url":"https://api.github.com/users/fbrehm/gists{/gist_id}","starred_url":"https://api.github.com/users/fbrehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbrehm/subscriptions","organizations_url":"https://api.github.com/users/fbrehm/orgs","repos_url":"https://api.github.com/users/fbrehm/repos","events_url":"https://api.github.com/users/fbrehm/events{/privacy}","received_events_url":"https://api.github.com/users/fbrehm/received_events","type":"User","site_admin":false},"repo":{"id":50423119,"name":"profitbricks-sdk-python","full_name":"fbrehm/profitbricks-sdk-python","owner":{"login":"fbrehm","id":360813,"avatar_url":"https://avatars.githubusercontent.com/u/360813?v=3","gravatar_id":"","url":"https://api.github.com/users/fbrehm","html_url":"https://github.com/fbrehm","followers_url":"https://api.github.com/users/fbrehm/followers","following_url":"https://api.github.com/users/fbrehm/following{/other_user}","gists_url":"https://api.github.com/users/fbrehm/gists{/gist_id}","starred_url":"https://api.github.com/users/fbrehm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbrehm/subscriptions","organizations_url":"https://api.github.com/users/fbrehm/orgs","repos_url":"https://api.github.com/users/fbrehm/repos","events_url":"https://api.github.com/users/fbrehm/events{/privacy}","received_events_url":"https://api.github.com/users/fbrehm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fbrehm/profitbricks-sdk-python","description":"Official mirror of the ProfitBricks SDK for Python. For more information on the ProfitBricks SDK for Python see our DevOps Central (https://devops.profitbricks.com/)","fork":true,"url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python","forks_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/forks","keys_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/teams","hooks_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/hooks","issue_events_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/issues/events{/number}","events_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/events","assignees_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/assignees{/user}","branches_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/branches{/branch}","tags_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/tags","blobs_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/statuses/{sha}","languages_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/languages","stargazers_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/stargazers","contributors_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/contributors","subscribers_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/subscribers","subscription_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/subscription","commits_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/contents/{+path}","compare_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/merges","archive_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/downloads","issues_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/issues{/number}","pulls_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/pulls{/number}","milestones_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/milestones{/number}","notifications_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/labels{/name}","releases_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/releases{/id}","deployments_url":"https://api.github.com/repos/fbrehm/profitbricks-sdk-python/deployments","created_at":"2016-01-26T11:01:52Z","updated_at":"2016-01-26T11:01:52Z","pushed_at":"2016-02-05T08:40:28Z","git_url":"git://github.com/fbrehm/profitbricks-sdk-python.git","ssh_url":"git@github.com:fbrehm/profitbricks-sdk-python.git","clone_url":"https://github.com/fbrehm/profitbricks-sdk-python.git","svn_url":"https://github.com/fbrehm/profitbricks-sdk-python","homepage":null,"size":86,"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":"profitbricks:master","ref":"master","sha":"7be4ca4d69116eb0db0ce4f66eec27faaa277adc","user":{"login":"profitbricks","id":4950450,"avatar_url":"https://avatars.githubusercontent.com/u/4950450?v=3","gravatar_id":"","url":"https://api.github.com/users/profitbricks","html_url":"https://github.com/profitbricks","followers_url":"https://api.github.com/users/profitbricks/followers","following_url":"https://api.github.com/users/profitbricks/following{/other_user}","gists_url":"https://api.github.com/users/profitbricks/gists{/gist_id}","starred_url":"https://api.github.com/users/profitbricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profitbricks/subscriptions","organizations_url":"https://api.github.com/users/profitbricks/orgs","repos_url":"https://api.github.com/users/profitbricks/repos","events_url":"https://api.github.com/users/profitbricks/events{/privacy}","received_events_url":"https://api.github.com/users/profitbricks/received_events","type":"Organization","site_admin":false},"repo":{"id":32338806,"name":"profitbricks-sdk-python","full_name":"profitbricks/profitbricks-sdk-python","owner":{"login":"profitbricks","id":4950450,"avatar_url":"https://avatars.githubusercontent.com/u/4950450?v=3","gravatar_id":"","url":"https://api.github.com/users/profitbricks","html_url":"https://github.com/profitbricks","followers_url":"https://api.github.com/users/profitbricks/followers","following_url":"https://api.github.com/users/profitbricks/following{/other_user}","gists_url":"https://api.github.com/users/profitbricks/gists{/gist_id}","starred_url":"https://api.github.com/users/profitbricks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/profitbricks/subscriptions","organizations_url":"https://api.github.com/users/profitbricks/orgs","repos_url":"https://api.github.com/users/profitbricks/repos","events_url":"https://api.github.com/users/profitbricks/events{/privacy}","received_events_url":"https://api.github.com/users/profitbricks/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/profitbricks/profitbricks-sdk-python","description":"Official mirror of the ProfitBricks SDK for Python. For more information on the ProfitBricks SDK for Python see our DevOps Central (https://devops.profitbricks.com/)","fork":false,"url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python","forks_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/forks","keys_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/teams","hooks_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/hooks","issue_events_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/issues/events{/number}","events_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/events","assignees_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/assignees{/user}","branches_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/branches{/branch}","tags_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/tags","blobs_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/git/refs{/sha}","trees_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/statuses/{sha}","languages_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/languages","stargazers_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/stargazers","contributors_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/contributors","subscribers_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/subscribers","subscription_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/subscription","commits_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/commits{/sha}","git_commits_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/git/commits{/sha}","comments_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/comments{/number}","issue_comment_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/issues/comments{/number}","contents_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/contents/{+path}","compare_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/merges","archive_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/downloads","issues_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/issues{/number}","pulls_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls{/number}","milestones_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/milestones{/number}","notifications_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/labels{/name}","releases_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/releases{/id}","deployments_url":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/deployments","created_at":"2015-03-16T16:41:22Z","updated_at":"2016-01-19T12:20:48Z","pushed_at":"2016-02-09T23:27:26Z","git_url":"git://github.com/profitbricks/profitbricks-sdk-python.git","ssh_url":"git@github.com:profitbricks/profitbricks-sdk-python.git","clone_url":"https://github.com/profitbricks/profitbricks-sdk-python.git","svn_url":"https://github.com/profitbricks/profitbricks-sdk-python","homepage":null,"size":95,"stargazers_count":3,"watchers_count":3,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/22"},"html":{"href":"https://github.com/profitbricks/profitbricks-sdk-python/pull/22"},"issue":{"href":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/issues/22"},"comments":{"href":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/profitbricks/profitbricks-sdk-python/statuses/f7dfcd907eddb4fb237970aab45a60beac7ac693"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"baldwinSPC","id":6981744,"avatar_url":"https://avatars.githubusercontent.com/u/6981744?v=3","gravatar_id":"","url":"https://api.github.com/users/baldwinSPC","html_url":"https://github.com/baldwinSPC","followers_url":"https://api.github.com/users/baldwinSPC/followers","following_url":"https://api.github.com/users/baldwinSPC/following{/other_user}","gists_url":"https://api.github.com/users/baldwinSPC/gists{/gist_id}","starred_url":"https://api.github.com/users/baldwinSPC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baldwinSPC/subscriptions","organizations_url":"https://api.github.com/users/baldwinSPC/orgs","repos_url":"https://api.github.com/users/baldwinSPC/repos","events_url":"https://api.github.com/users/baldwinSPC/events{/privacy}","received_events_url":"https://api.github.com/users/baldwinSPC/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":20,"deletions":6,"changed_files":1}}