{"action":"opened","number":42,"pull_request":{"url":"https://api.github.com/repos/sshuttle/sshuttle/pulls/42","id":53061576,"html_url":"https://github.com/sshuttle/sshuttle/pull/42","diff_url":"https://github.com/sshuttle/sshuttle/pull/42.diff","patch_url":"https://github.com/sshuttle/sshuttle/pull/42.patch","issue_url":"https://api.github.com/repos/sshuttle/sshuttle/issues/42","number":42,"state":"open","locked":false,"title":"Fixed str being used as bytes in daemonize","user":{"login":"vieira","id":207460,"avatar_url":"https://avatars.githubusercontent.com/u/207460?v=3","gravatar_id":"","url":"https://api.github.com/users/vieira","html_url":"https://github.com/vieira","followers_url":"https://api.github.com/users/vieira/followers","following_url":"https://api.github.com/users/vieira/following{/other_user}","gists_url":"https://api.github.com/users/vieira/gists{/gist_id}","starred_url":"https://api.github.com/users/vieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieira/subscriptions","organizations_url":"https://api.github.com/users/vieira/orgs","repos_url":"https://api.github.com/users/vieira/repos","events_url":"https://api.github.com/users/vieira/events{/privacy}","received_events_url":"https://api.github.com/users/vieira/received_events","type":"User","site_admin":false},"body":"Fixes the following error when --daemon is used with Python 3.\r\n```\r\n Traceback (most recent call last):\r\n   File \"/usr/lib/python3.5/runpy.py\", line 170, in _run_module_as_main\r\n     \"__main__\", mod_spec)\r\n   File \"/usr/lib/python3.5/runpy.py\", line 85, in _run_code\r\n     exec(code, run_globals)\r\n   File \"/root/sshuttle/sshuttle/__main__.py\", line 216, in <module>\r\n     opt.daemon, opt.pidfile)\r\n   File \"/root/sshuttle/sshuttle/client.py\", line 640, in main\r\n     seed_hosts, auto_nets, daemon)\r\n   File \"/root/sshuttle/sshuttle/client.py\", line 438, in _main\r\n     daemonize()\r\n   File \"/root/sshuttle/sshuttle/client.py\", line 70, in daemonize\r\n     os.write(outfd, '%d\\n' % os.getpid())\r\nTypeError: a bytes-like object is required, not 'str'\r\n```","created_at":"2015-12-09T00:43:00Z","updated_at":"2015-12-09T00:43:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"24e034fdccb2b8197ccf523e531e1040fa3923ee","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sshuttle/sshuttle/pulls/42/commits","review_comments_url":"https://api.github.com/repos/sshuttle/sshuttle/pulls/42/comments","review_comment_url":"https://api.github.com/repos/sshuttle/sshuttle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sshuttle/sshuttle/issues/42/comments","statuses_url":"https://api.github.com/repos/sshuttle/sshuttle/statuses/840c777b9b3f337a4733e38b908da0bfb25460f4","head":{"label":"vieira:strbytes","ref":"strbytes","sha":"840c777b9b3f337a4733e38b908da0bfb25460f4","user":{"login":"vieira","id":207460,"avatar_url":"https://avatars.githubusercontent.com/u/207460?v=3","gravatar_id":"","url":"https://api.github.com/users/vieira","html_url":"https://github.com/vieira","followers_url":"https://api.github.com/users/vieira/followers","following_url":"https://api.github.com/users/vieira/following{/other_user}","gists_url":"https://api.github.com/users/vieira/gists{/gist_id}","starred_url":"https://api.github.com/users/vieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieira/subscriptions","organizations_url":"https://api.github.com/users/vieira/orgs","repos_url":"https://api.github.com/users/vieira/repos","events_url":"https://api.github.com/users/vieira/events{/privacy}","received_events_url":"https://api.github.com/users/vieira/received_events","type":"User","site_admin":false},"repo":{"id":45058661,"name":"sshuttle","full_name":"vieira/sshuttle","owner":{"login":"vieira","id":207460,"avatar_url":"https://avatars.githubusercontent.com/u/207460?v=3","gravatar_id":"","url":"https://api.github.com/users/vieira","html_url":"https://github.com/vieira","followers_url":"https://api.github.com/users/vieira/followers","following_url":"https://api.github.com/users/vieira/following{/other_user}","gists_url":"https://api.github.com/users/vieira/gists{/gist_id}","starred_url":"https://api.github.com/users/vieira/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vieira/subscriptions","organizations_url":"https://api.github.com/users/vieira/orgs","repos_url":"https://api.github.com/users/vieira/repos","events_url":"https://api.github.com/users/vieira/events{/privacy}","received_events_url":"https://api.github.com/users/vieira/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vieira/sshuttle","description":"Transparent proxy server that works as a poor man's VPN.  Forwards over ssh.  Doesn't require admin.  Works with Linux and MacOS.  Supports DNS tunneling.","fork":true,"url":"https://api.github.com/repos/vieira/sshuttle","forks_url":"https://api.github.com/repos/vieira/sshuttle/forks","keys_url":"https://api.github.com/repos/vieira/sshuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vieira/sshuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vieira/sshuttle/teams","hooks_url":"https://api.github.com/repos/vieira/sshuttle/hooks","issue_events_url":"https://api.github.com/repos/vieira/sshuttle/issues/events{/number}","events_url":"https://api.github.com/repos/vieira/sshuttle/events","assignees_url":"https://api.github.com/repos/vieira/sshuttle/assignees{/user}","branches_url":"https://api.github.com/repos/vieira/sshuttle/branches{/branch}","tags_url":"https://api.github.com/repos/vieira/sshuttle/tags","blobs_url":"https://api.github.com/repos/vieira/sshuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vieira/sshuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vieira/sshuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/vieira/sshuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vieira/sshuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/vieira/sshuttle/languages","stargazers_url":"https://api.github.com/repos/vieira/sshuttle/stargazers","contributors_url":"https://api.github.com/repos/vieira/sshuttle/contributors","subscribers_url":"https://api.github.com/repos/vieira/sshuttle/subscribers","subscription_url":"https://api.github.com/repos/vieira/sshuttle/subscription","commits_url":"https://api.github.com/repos/vieira/sshuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/vieira/sshuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/vieira/sshuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/vieira/sshuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/vieira/sshuttle/contents/{+path}","compare_url":"https://api.github.com/repos/vieira/sshuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vieira/sshuttle/merges","archive_url":"https://api.github.com/repos/vieira/sshuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vieira/sshuttle/downloads","issues_url":"https://api.github.com/repos/vieira/sshuttle/issues{/number}","pulls_url":"https://api.github.com/repos/vieira/sshuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/vieira/sshuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/vieira/sshuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vieira/sshuttle/labels{/name}","releases_url":"https://api.github.com/repos/vieira/sshuttle/releases{/id}","created_at":"2015-10-27T17:40:18Z","updated_at":"2015-10-27T17:40:19Z","pushed_at":"2015-12-09T00:40:08Z","git_url":"git://github.com/vieira/sshuttle.git","ssh_url":"git@github.com:vieira/sshuttle.git","clone_url":"https://github.com/vieira/sshuttle.git","svn_url":"https://github.com/vieira/sshuttle","homepage":"","size":938,"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":"sshuttle:master","ref":"master","sha":"4fdd715bc109416929806776c60b6e181f6787cd","user":{"login":"sshuttle","id":8774006,"avatar_url":"https://avatars.githubusercontent.com/u/8774006?v=3","gravatar_id":"","url":"https://api.github.com/users/sshuttle","html_url":"https://github.com/sshuttle","followers_url":"https://api.github.com/users/sshuttle/followers","following_url":"https://api.github.com/users/sshuttle/following{/other_user}","gists_url":"https://api.github.com/users/sshuttle/gists{/gist_id}","starred_url":"https://api.github.com/users/sshuttle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshuttle/subscriptions","organizations_url":"https://api.github.com/users/sshuttle/orgs","repos_url":"https://api.github.com/users/sshuttle/repos","events_url":"https://api.github.com/users/sshuttle/events{/privacy}","received_events_url":"https://api.github.com/users/sshuttle/received_events","type":"Organization","site_admin":false},"repo":{"id":24043280,"name":"sshuttle","full_name":"sshuttle/sshuttle","owner":{"login":"sshuttle","id":8774006,"avatar_url":"https://avatars.githubusercontent.com/u/8774006?v=3","gravatar_id":"","url":"https://api.github.com/users/sshuttle","html_url":"https://github.com/sshuttle","followers_url":"https://api.github.com/users/sshuttle/followers","following_url":"https://api.github.com/users/sshuttle/following{/other_user}","gists_url":"https://api.github.com/users/sshuttle/gists{/gist_id}","starred_url":"https://api.github.com/users/sshuttle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sshuttle/subscriptions","organizations_url":"https://api.github.com/users/sshuttle/orgs","repos_url":"https://api.github.com/users/sshuttle/repos","events_url":"https://api.github.com/users/sshuttle/events{/privacy}","received_events_url":"https://api.github.com/users/sshuttle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/sshuttle/sshuttle","description":"Transparent proxy server that works as a poor man's VPN.  Forwards over ssh.  Doesn't require admin.  Works with Linux and MacOS.  Supports DNS tunneling.","fork":true,"url":"https://api.github.com/repos/sshuttle/sshuttle","forks_url":"https://api.github.com/repos/sshuttle/sshuttle/forks","keys_url":"https://api.github.com/repos/sshuttle/sshuttle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sshuttle/sshuttle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sshuttle/sshuttle/teams","hooks_url":"https://api.github.com/repos/sshuttle/sshuttle/hooks","issue_events_url":"https://api.github.com/repos/sshuttle/sshuttle/issues/events{/number}","events_url":"https://api.github.com/repos/sshuttle/sshuttle/events","assignees_url":"https://api.github.com/repos/sshuttle/sshuttle/assignees{/user}","branches_url":"https://api.github.com/repos/sshuttle/sshuttle/branches{/branch}","tags_url":"https://api.github.com/repos/sshuttle/sshuttle/tags","blobs_url":"https://api.github.com/repos/sshuttle/sshuttle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sshuttle/sshuttle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sshuttle/sshuttle/git/refs{/sha}","trees_url":"https://api.github.com/repos/sshuttle/sshuttle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sshuttle/sshuttle/statuses/{sha}","languages_url":"https://api.github.com/repos/sshuttle/sshuttle/languages","stargazers_url":"https://api.github.com/repos/sshuttle/sshuttle/stargazers","contributors_url":"https://api.github.com/repos/sshuttle/sshuttle/contributors","subscribers_url":"https://api.github.com/repos/sshuttle/sshuttle/subscribers","subscription_url":"https://api.github.com/repos/sshuttle/sshuttle/subscription","commits_url":"https://api.github.com/repos/sshuttle/sshuttle/commits{/sha}","git_commits_url":"https://api.github.com/repos/sshuttle/sshuttle/git/commits{/sha}","comments_url":"https://api.github.com/repos/sshuttle/sshuttle/comments{/number}","issue_comment_url":"https://api.github.com/repos/sshuttle/sshuttle/issues/comments{/number}","contents_url":"https://api.github.com/repos/sshuttle/sshuttle/contents/{+path}","compare_url":"https://api.github.com/repos/sshuttle/sshuttle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sshuttle/sshuttle/merges","archive_url":"https://api.github.com/repos/sshuttle/sshuttle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sshuttle/sshuttle/downloads","issues_url":"https://api.github.com/repos/sshuttle/sshuttle/issues{/number}","pulls_url":"https://api.github.com/repos/sshuttle/sshuttle/pulls{/number}","milestones_url":"https://api.github.com/repos/sshuttle/sshuttle/milestones{/number}","notifications_url":"https://api.github.com/repos/sshuttle/sshuttle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sshuttle/sshuttle/labels{/name}","releases_url":"https://api.github.com/repos/sshuttle/sshuttle/releases{/id}","created_at":"2014-09-15T04:51:13Z","updated_at":"2015-12-08T01:50:50Z","pushed_at":"2015-12-09T00:43:01Z","git_url":"git://github.com/sshuttle/sshuttle.git","ssh_url":"git@github.com:sshuttle/sshuttle.git","clone_url":"https://github.com/sshuttle/sshuttle.git","svn_url":"https://github.com/sshuttle/sshuttle","homepage":"","size":1042,"stargazers_count":468,"watchers_count":468,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":36,"mirror_url":null,"open_issues_count":8,"forks":36,"open_issues":8,"watchers":468,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sshuttle/sshuttle/pulls/42"},"html":{"href":"https://github.com/sshuttle/sshuttle/pull/42"},"issue":{"href":"https://api.github.com/repos/sshuttle/sshuttle/issues/42"},"comments":{"href":"https://api.github.com/repos/sshuttle/sshuttle/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/sshuttle/sshuttle/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/sshuttle/sshuttle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sshuttle/sshuttle/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/sshuttle/sshuttle/statuses/840c777b9b3f337a4733e38b908da0bfb25460f4"}},"merged":false,"mergeable":true,"mergeable_state":"unstable","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}