{"action":"closed","number":21,"pull_request":{"url":"https://api.github.com/repos/Ape/samsungctl/pulls/21","id":99693632,"html_url":"https://github.com/Ape/samsungctl/pull/21","diff_url":"https://github.com/Ape/samsungctl/pull/21.diff","patch_url":"https://github.com/Ape/samsungctl/pull/21.patch","issue_url":"https://api.github.com/repos/Ape/samsungctl/issues/21","number":21,"state":"closed","locked":false,"title":"Restore Remote object context manager support","user":{"login":"Ape","id":156318,"avatar_url":"https://avatars.githubusercontent.com/u/156318?v=3","gravatar_id":"","url":"https://api.github.com/users/Ape","html_url":"https://github.com/Ape","followers_url":"https://api.github.com/users/Ape/followers","following_url":"https://api.github.com/users/Ape/following{/other_user}","gists_url":"https://api.github.com/users/Ape/gists{/gist_id}","starred_url":"https://api.github.com/users/Ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ape/subscriptions","organizations_url":"https://api.github.com/users/Ape/orgs","repos_url":"https://api.github.com/users/Ape/repos","events_url":"https://api.github.com/users/Ape/events{/privacy}","received_events_url":"https://api.github.com/users/Ape/received_events","type":"User","site_admin":false},"body":"Seems like #19 broke the context manager (`with` statements / `__enter__` + `__exit__`) support for Remote objects. This PR restores the support and uses the `with` statement again in `__main__.py`.\r\n\r\n@nunofgs @kylerw Could you test that the websocket feature still works with this patch?","created_at":"2016-12-29T20:07:47Z","updated_at":"2016-12-31T08:17:16Z","closed_at":"2016-12-31T08:17:16Z","merged_at":"2016-12-31T08:17:15Z","merge_commit_sha":"505c54bb20163a10a2888d5c321e00f655ddb007","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Ape/samsungctl/milestones/2","html_url":"https://github.com/Ape/samsungctl/milestone/2","labels_url":"https://api.github.com/repos/Ape/samsungctl/milestones/2/labels","id":602499,"number":2,"title":"1.0.0","description":"","creator":{"login":"Ape","id":156318,"avatar_url":"https://avatars.githubusercontent.com/u/156318?v=3","gravatar_id":"","url":"https://api.github.com/users/Ape","html_url":"https://github.com/Ape","followers_url":"https://api.github.com/users/Ape/followers","following_url":"https://api.github.com/users/Ape/following{/other_user}","gists_url":"https://api.github.com/users/Ape/gists{/gist_id}","starred_url":"https://api.github.com/users/Ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ape/subscriptions","organizations_url":"https://api.github.com/users/Ape/orgs","repos_url":"https://api.github.com/users/Ape/repos","events_url":"https://api.github.com/users/Ape/events{/privacy}","received_events_url":"https://api.github.com/users/Ape/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":5,"state":"open","created_at":"2014-03-19T09:55:46Z","updated_at":"2016-12-31T08:17:16Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Ape/samsungctl/pulls/21/commits","review_comments_url":"https://api.github.com/repos/Ape/samsungctl/pulls/21/comments","review_comment_url":"https://api.github.com/repos/Ape/samsungctl/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ape/samsungctl/issues/21/comments","statuses_url":"https://api.github.com/repos/Ape/samsungctl/statuses/88ea177070e772214abab550570bc84d1550713b","head":{"label":"Ape:pr/restore_remote_object_context_manager","ref":"pr/restore_remote_object_context_manager","sha":"88ea177070e772214abab550570bc84d1550713b","user":{"login":"Ape","id":156318,"avatar_url":"https://avatars.githubusercontent.com/u/156318?v=3","gravatar_id":"","url":"https://api.github.com/users/Ape","html_url":"https://github.com/Ape","followers_url":"https://api.github.com/users/Ape/followers","following_url":"https://api.github.com/users/Ape/following{/other_user}","gists_url":"https://api.github.com/users/Ape/gists{/gist_id}","starred_url":"https://api.github.com/users/Ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ape/subscriptions","organizations_url":"https://api.github.com/users/Ape/orgs","repos_url":"https://api.github.com/users/Ape/repos","events_url":"https://api.github.com/users/Ape/events{/privacy}","received_events_url":"https://api.github.com/users/Ape/received_events","type":"User","site_admin":false},"repo":{"id":17731048,"name":"samsungctl","full_name":"Ape/samsungctl","owner":{"login":"Ape","id":156318,"avatar_url":"https://avatars.githubusercontent.com/u/156318?v=3","gravatar_id":"","url":"https://api.github.com/users/Ape","html_url":"https://github.com/Ape","followers_url":"https://api.github.com/users/Ape/followers","following_url":"https://api.github.com/users/Ape/following{/other_user}","gists_url":"https://api.github.com/users/Ape/gists{/gist_id}","starred_url":"https://api.github.com/users/Ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ape/subscriptions","organizations_url":"https://api.github.com/users/Ape/orgs","repos_url":"https://api.github.com/users/Ape/repos","events_url":"https://api.github.com/users/Ape/events{/privacy}","received_events_url":"https://api.github.com/users/Ape/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ape/samsungctl","description":"Remote control Samsung televisions via a TCP/IP connection","fork":false,"url":"https://api.github.com/repos/Ape/samsungctl","forks_url":"https://api.github.com/repos/Ape/samsungctl/forks","keys_url":"https://api.github.com/repos/Ape/samsungctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ape/samsungctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ape/samsungctl/teams","hooks_url":"https://api.github.com/repos/Ape/samsungctl/hooks","issue_events_url":"https://api.github.com/repos/Ape/samsungctl/issues/events{/number}","events_url":"https://api.github.com/repos/Ape/samsungctl/events","assignees_url":"https://api.github.com/repos/Ape/samsungctl/assignees{/user}","branches_url":"https://api.github.com/repos/Ape/samsungctl/branches{/branch}","tags_url":"https://api.github.com/repos/Ape/samsungctl/tags","blobs_url":"https://api.github.com/repos/Ape/samsungctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ape/samsungctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ape/samsungctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ape/samsungctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ape/samsungctl/statuses/{sha}","languages_url":"https://api.github.com/repos/Ape/samsungctl/languages","stargazers_url":"https://api.github.com/repos/Ape/samsungctl/stargazers","contributors_url":"https://api.github.com/repos/Ape/samsungctl/contributors","subscribers_url":"https://api.github.com/repos/Ape/samsungctl/subscribers","subscription_url":"https://api.github.com/repos/Ape/samsungctl/subscription","commits_url":"https://api.github.com/repos/Ape/samsungctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ape/samsungctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ape/samsungctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ape/samsungctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ape/samsungctl/contents/{+path}","compare_url":"https://api.github.com/repos/Ape/samsungctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ape/samsungctl/merges","archive_url":"https://api.github.com/repos/Ape/samsungctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ape/samsungctl/downloads","issues_url":"https://api.github.com/repos/Ape/samsungctl/issues{/number}","pulls_url":"https://api.github.com/repos/Ape/samsungctl/pulls{/number}","milestones_url":"https://api.github.com/repos/Ape/samsungctl/milestones{/number}","notifications_url":"https://api.github.com/repos/Ape/samsungctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ape/samsungctl/labels{/name}","releases_url":"https://api.github.com/repos/Ape/samsungctl/releases{/id}","deployments_url":"https://api.github.com/repos/Ape/samsungctl/deployments","created_at":"2014-03-14T00:52:56Z","updated_at":"2016-12-25T17:30:42Z","pushed_at":"2016-12-31T08:17:15Z","git_url":"git://github.com/Ape/samsungctl.git","ssh_url":"git@github.com:Ape/samsungctl.git","clone_url":"https://github.com/Ape/samsungctl.git","svn_url":"https://github.com/Ape/samsungctl","homepage":"","size":45,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":26,"default_branch":"master"}},"base":{"label":"Ape:master","ref":"master","sha":"ce57e04677323c0924e734cb0098c2baf0989781","user":{"login":"Ape","id":156318,"avatar_url":"https://avatars.githubusercontent.com/u/156318?v=3","gravatar_id":"","url":"https://api.github.com/users/Ape","html_url":"https://github.com/Ape","followers_url":"https://api.github.com/users/Ape/followers","following_url":"https://api.github.com/users/Ape/following{/other_user}","gists_url":"https://api.github.com/users/Ape/gists{/gist_id}","starred_url":"https://api.github.com/users/Ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ape/subscriptions","organizations_url":"https://api.github.com/users/Ape/orgs","repos_url":"https://api.github.com/users/Ape/repos","events_url":"https://api.github.com/users/Ape/events{/privacy}","received_events_url":"https://api.github.com/users/Ape/received_events","type":"User","site_admin":false},"repo":{"id":17731048,"name":"samsungctl","full_name":"Ape/samsungctl","owner":{"login":"Ape","id":156318,"avatar_url":"https://avatars.githubusercontent.com/u/156318?v=3","gravatar_id":"","url":"https://api.github.com/users/Ape","html_url":"https://github.com/Ape","followers_url":"https://api.github.com/users/Ape/followers","following_url":"https://api.github.com/users/Ape/following{/other_user}","gists_url":"https://api.github.com/users/Ape/gists{/gist_id}","starred_url":"https://api.github.com/users/Ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ape/subscriptions","organizations_url":"https://api.github.com/users/Ape/orgs","repos_url":"https://api.github.com/users/Ape/repos","events_url":"https://api.github.com/users/Ape/events{/privacy}","received_events_url":"https://api.github.com/users/Ape/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ape/samsungctl","description":"Remote control Samsung televisions via a TCP/IP connection","fork":false,"url":"https://api.github.com/repos/Ape/samsungctl","forks_url":"https://api.github.com/repos/Ape/samsungctl/forks","keys_url":"https://api.github.com/repos/Ape/samsungctl/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ape/samsungctl/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ape/samsungctl/teams","hooks_url":"https://api.github.com/repos/Ape/samsungctl/hooks","issue_events_url":"https://api.github.com/repos/Ape/samsungctl/issues/events{/number}","events_url":"https://api.github.com/repos/Ape/samsungctl/events","assignees_url":"https://api.github.com/repos/Ape/samsungctl/assignees{/user}","branches_url":"https://api.github.com/repos/Ape/samsungctl/branches{/branch}","tags_url":"https://api.github.com/repos/Ape/samsungctl/tags","blobs_url":"https://api.github.com/repos/Ape/samsungctl/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ape/samsungctl/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ape/samsungctl/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ape/samsungctl/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ape/samsungctl/statuses/{sha}","languages_url":"https://api.github.com/repos/Ape/samsungctl/languages","stargazers_url":"https://api.github.com/repos/Ape/samsungctl/stargazers","contributors_url":"https://api.github.com/repos/Ape/samsungctl/contributors","subscribers_url":"https://api.github.com/repos/Ape/samsungctl/subscribers","subscription_url":"https://api.github.com/repos/Ape/samsungctl/subscription","commits_url":"https://api.github.com/repos/Ape/samsungctl/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ape/samsungctl/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ape/samsungctl/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ape/samsungctl/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ape/samsungctl/contents/{+path}","compare_url":"https://api.github.com/repos/Ape/samsungctl/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ape/samsungctl/merges","archive_url":"https://api.github.com/repos/Ape/samsungctl/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ape/samsungctl/downloads","issues_url":"https://api.github.com/repos/Ape/samsungctl/issues{/number}","pulls_url":"https://api.github.com/repos/Ape/samsungctl/pulls{/number}","milestones_url":"https://api.github.com/repos/Ape/samsungctl/milestones{/number}","notifications_url":"https://api.github.com/repos/Ape/samsungctl/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ape/samsungctl/labels{/name}","releases_url":"https://api.github.com/repos/Ape/samsungctl/releases{/id}","deployments_url":"https://api.github.com/repos/Ape/samsungctl/deployments","created_at":"2014-03-14T00:52:56Z","updated_at":"2016-12-25T17:30:42Z","pushed_at":"2016-12-31T08:17:15Z","git_url":"git://github.com/Ape/samsungctl.git","ssh_url":"git@github.com:Ape/samsungctl.git","clone_url":"https://github.com/Ape/samsungctl.git","svn_url":"https://github.com/Ape/samsungctl","homepage":"","size":45,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ape/samsungctl/pulls/21"},"html":{"href":"https://github.com/Ape/samsungctl/pull/21"},"issue":{"href":"https://api.github.com/repos/Ape/samsungctl/issues/21"},"comments":{"href":"https://api.github.com/repos/Ape/samsungctl/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/Ape/samsungctl/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/Ape/samsungctl/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ape/samsungctl/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/Ape/samsungctl/statuses/88ea177070e772214abab550570bc84d1550713b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Ape","id":156318,"avatar_url":"https://avatars.githubusercontent.com/u/156318?v=3","gravatar_id":"","url":"https://api.github.com/users/Ape","html_url":"https://github.com/Ape","followers_url":"https://api.github.com/users/Ape/followers","following_url":"https://api.github.com/users/Ape/following{/other_user}","gists_url":"https://api.github.com/users/Ape/gists{/gist_id}","starred_url":"https://api.github.com/users/Ape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ape/subscriptions","organizations_url":"https://api.github.com/users/Ape/orgs","repos_url":"https://api.github.com/users/Ape/repos","events_url":"https://api.github.com/users/Ape/events{/privacy}","received_events_url":"https://api.github.com/users/Ape/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":15,"deletions":10,"changed_files":2}}
{"actor":{"display_login":"Ape"}}