{"action":"opened","number":21,"pull_request":{"url":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/21","id":76052426,"html_url":"https://github.com/stitchfix/fauxtograph/pull/21","diff_url":"https://github.com/stitchfix/fauxtograph/pull/21.diff","patch_url":"https://github.com/stitchfix/fauxtograph/pull/21.patch","issue_url":"https://api.github.com/repos/stitchfix/fauxtograph/issues/21","number":21,"state":"open","locked":false,"title":"Python3 compatibility","user":{"login":"waleedka","id":106472,"avatar_url":"https://avatars.githubusercontent.com/u/106472?v=3","gravatar_id":"","url":"https://api.github.com/users/waleedka","html_url":"https://github.com/waleedka","followers_url":"https://api.github.com/users/waleedka/followers","following_url":"https://api.github.com/users/waleedka/following{/other_user}","gists_url":"https://api.github.com/users/waleedka/gists{/gist_id}","starred_url":"https://api.github.com/users/waleedka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waleedka/subscriptions","organizations_url":"https://api.github.com/users/waleedka/orgs","repos_url":"https://api.github.com/users/waleedka/repos","events_url":"https://api.github.com/users/waleedka/events{/privacy}","received_events_url":"https://api.github.com/users/waleedka/received_events","type":"User","site_admin":false},"body":"I encountered several bugs running it on Python 3. I fixed them here in a way compatible with both Python 2 and 3 so everyone's happy. This PR includes:\r\n\r\n- Use BeautifulSoup 4 instead of the obsolete version 3\r\n- Fix for relative import, which is not the default in py3.\r\n- Import the reduce() because it's not a builtin funciton in py3.\r\n- Fixing saving files (string vs bytes).\r\n\r\nThis update was tested on Python 2.7 and 3.5 on OSX.","created_at":"2016-07-02T01:24:28Z","updated_at":"2016-07-02T01:24:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/21/commits","review_comments_url":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/21/comments","review_comment_url":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stitchfix/fauxtograph/issues/21/comments","statuses_url":"https://api.github.com/repos/stitchfix/fauxtograph/statuses/8812710b7d0d0bf162fb7a4acec9c4b2eec27037","head":{"label":"waleedka:python3","ref":"python3","sha":"8812710b7d0d0bf162fb7a4acec9c4b2eec27037","user":{"login":"waleedka","id":106472,"avatar_url":"https://avatars.githubusercontent.com/u/106472?v=3","gravatar_id":"","url":"https://api.github.com/users/waleedka","html_url":"https://github.com/waleedka","followers_url":"https://api.github.com/users/waleedka/followers","following_url":"https://api.github.com/users/waleedka/following{/other_user}","gists_url":"https://api.github.com/users/waleedka/gists{/gist_id}","starred_url":"https://api.github.com/users/waleedka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waleedka/subscriptions","organizations_url":"https://api.github.com/users/waleedka/orgs","repos_url":"https://api.github.com/users/waleedka/repos","events_url":"https://api.github.com/users/waleedka/events{/privacy}","received_events_url":"https://api.github.com/users/waleedka/received_events","type":"User","site_admin":false},"repo":{"id":62356182,"name":"fauxtograph","full_name":"waleedka/fauxtograph","owner":{"login":"waleedka","id":106472,"avatar_url":"https://avatars.githubusercontent.com/u/106472?v=3","gravatar_id":"","url":"https://api.github.com/users/waleedka","html_url":"https://github.com/waleedka","followers_url":"https://api.github.com/users/waleedka/followers","following_url":"https://api.github.com/users/waleedka/following{/other_user}","gists_url":"https://api.github.com/users/waleedka/gists{/gist_id}","starred_url":"https://api.github.com/users/waleedka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/waleedka/subscriptions","organizations_url":"https://api.github.com/users/waleedka/orgs","repos_url":"https://api.github.com/users/waleedka/repos","events_url":"https://api.github.com/users/waleedka/events{/privacy}","received_events_url":"https://api.github.com/users/waleedka/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/waleedka/fauxtograph","description":"Tools for using a variational auto-encoder for latent image encoding and generation. ","fork":true,"url":"https://api.github.com/repos/waleedka/fauxtograph","forks_url":"https://api.github.com/repos/waleedka/fauxtograph/forks","keys_url":"https://api.github.com/repos/waleedka/fauxtograph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/waleedka/fauxtograph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/waleedka/fauxtograph/teams","hooks_url":"https://api.github.com/repos/waleedka/fauxtograph/hooks","issue_events_url":"https://api.github.com/repos/waleedka/fauxtograph/issues/events{/number}","events_url":"https://api.github.com/repos/waleedka/fauxtograph/events","assignees_url":"https://api.github.com/repos/waleedka/fauxtograph/assignees{/user}","branches_url":"https://api.github.com/repos/waleedka/fauxtograph/branches{/branch}","tags_url":"https://api.github.com/repos/waleedka/fauxtograph/tags","blobs_url":"https://api.github.com/repos/waleedka/fauxtograph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/waleedka/fauxtograph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/waleedka/fauxtograph/git/refs{/sha}","trees_url":"https://api.github.com/repos/waleedka/fauxtograph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/waleedka/fauxtograph/statuses/{sha}","languages_url":"https://api.github.com/repos/waleedka/fauxtograph/languages","stargazers_url":"https://api.github.com/repos/waleedka/fauxtograph/stargazers","contributors_url":"https://api.github.com/repos/waleedka/fauxtograph/contributors","subscribers_url":"https://api.github.com/repos/waleedka/fauxtograph/subscribers","subscription_url":"https://api.github.com/repos/waleedka/fauxtograph/subscription","commits_url":"https://api.github.com/repos/waleedka/fauxtograph/commits{/sha}","git_commits_url":"https://api.github.com/repos/waleedka/fauxtograph/git/commits{/sha}","comments_url":"https://api.github.com/repos/waleedka/fauxtograph/comments{/number}","issue_comment_url":"https://api.github.com/repos/waleedka/fauxtograph/issues/comments{/number}","contents_url":"https://api.github.com/repos/waleedka/fauxtograph/contents/{+path}","compare_url":"https://api.github.com/repos/waleedka/fauxtograph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/waleedka/fauxtograph/merges","archive_url":"https://api.github.com/repos/waleedka/fauxtograph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/waleedka/fauxtograph/downloads","issues_url":"https://api.github.com/repos/waleedka/fauxtograph/issues{/number}","pulls_url":"https://api.github.com/repos/waleedka/fauxtograph/pulls{/number}","milestones_url":"https://api.github.com/repos/waleedka/fauxtograph/milestones{/number}","notifications_url":"https://api.github.com/repos/waleedka/fauxtograph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/waleedka/fauxtograph/labels{/name}","releases_url":"https://api.github.com/repos/waleedka/fauxtograph/releases{/id}","deployments_url":"https://api.github.com/repos/waleedka/fauxtograph/deployments","created_at":"2016-07-01T02:28:23Z","updated_at":"2016-07-01T02:28:24Z","pushed_at":"2016-07-02T01:13:58Z","git_url":"git://github.com/waleedka/fauxtograph.git","ssh_url":"git@github.com:waleedka/fauxtograph.git","clone_url":"https://github.com/waleedka/fauxtograph.git","svn_url":"https://github.com/waleedka/fauxtograph","homepage":null,"size":2268,"stargazers_count":0,"watchers_count":0,"language":"Jupyter Notebook","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":"stitchfix:master","ref":"master","sha":"393f402151126991dac1f2ee4cdd4c6aba817a5d","user":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"repo":{"id":41334050,"name":"fauxtograph","full_name":"stitchfix/fauxtograph","owner":{"login":"stitchfix","id":1749260,"avatar_url":"https://avatars.githubusercontent.com/u/1749260?v=3","gravatar_id":"","url":"https://api.github.com/users/stitchfix","html_url":"https://github.com/stitchfix","followers_url":"https://api.github.com/users/stitchfix/followers","following_url":"https://api.github.com/users/stitchfix/following{/other_user}","gists_url":"https://api.github.com/users/stitchfix/gists{/gist_id}","starred_url":"https://api.github.com/users/stitchfix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stitchfix/subscriptions","organizations_url":"https://api.github.com/users/stitchfix/orgs","repos_url":"https://api.github.com/users/stitchfix/repos","events_url":"https://api.github.com/users/stitchfix/events{/privacy}","received_events_url":"https://api.github.com/users/stitchfix/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stitchfix/fauxtograph","description":"Tools for using a variational auto-encoder for latent image encoding and generation. ","fork":false,"url":"https://api.github.com/repos/stitchfix/fauxtograph","forks_url":"https://api.github.com/repos/stitchfix/fauxtograph/forks","keys_url":"https://api.github.com/repos/stitchfix/fauxtograph/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stitchfix/fauxtograph/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stitchfix/fauxtograph/teams","hooks_url":"https://api.github.com/repos/stitchfix/fauxtograph/hooks","issue_events_url":"https://api.github.com/repos/stitchfix/fauxtograph/issues/events{/number}","events_url":"https://api.github.com/repos/stitchfix/fauxtograph/events","assignees_url":"https://api.github.com/repos/stitchfix/fauxtograph/assignees{/user}","branches_url":"https://api.github.com/repos/stitchfix/fauxtograph/branches{/branch}","tags_url":"https://api.github.com/repos/stitchfix/fauxtograph/tags","blobs_url":"https://api.github.com/repos/stitchfix/fauxtograph/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stitchfix/fauxtograph/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stitchfix/fauxtograph/git/refs{/sha}","trees_url":"https://api.github.com/repos/stitchfix/fauxtograph/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stitchfix/fauxtograph/statuses/{sha}","languages_url":"https://api.github.com/repos/stitchfix/fauxtograph/languages","stargazers_url":"https://api.github.com/repos/stitchfix/fauxtograph/stargazers","contributors_url":"https://api.github.com/repos/stitchfix/fauxtograph/contributors","subscribers_url":"https://api.github.com/repos/stitchfix/fauxtograph/subscribers","subscription_url":"https://api.github.com/repos/stitchfix/fauxtograph/subscription","commits_url":"https://api.github.com/repos/stitchfix/fauxtograph/commits{/sha}","git_commits_url":"https://api.github.com/repos/stitchfix/fauxtograph/git/commits{/sha}","comments_url":"https://api.github.com/repos/stitchfix/fauxtograph/comments{/number}","issue_comment_url":"https://api.github.com/repos/stitchfix/fauxtograph/issues/comments{/number}","contents_url":"https://api.github.com/repos/stitchfix/fauxtograph/contents/{+path}","compare_url":"https://api.github.com/repos/stitchfix/fauxtograph/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stitchfix/fauxtograph/merges","archive_url":"https://api.github.com/repos/stitchfix/fauxtograph/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stitchfix/fauxtograph/downloads","issues_url":"https://api.github.com/repos/stitchfix/fauxtograph/issues{/number}","pulls_url":"https://api.github.com/repos/stitchfix/fauxtograph/pulls{/number}","milestones_url":"https://api.github.com/repos/stitchfix/fauxtograph/milestones{/number}","notifications_url":"https://api.github.com/repos/stitchfix/fauxtograph/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stitchfix/fauxtograph/labels{/name}","releases_url":"https://api.github.com/repos/stitchfix/fauxtograph/releases{/id}","deployments_url":"https://api.github.com/repos/stitchfix/fauxtograph/deployments","created_at":"2015-08-25T00:35:41Z","updated_at":"2016-06-23T19:03:52Z","pushed_at":"2016-03-01T10:28:04Z","git_url":"git://github.com/stitchfix/fauxtograph.git","ssh_url":"git@github.com:stitchfix/fauxtograph.git","clone_url":"https://github.com/stitchfix/fauxtograph.git","svn_url":"https://github.com/stitchfix/fauxtograph","homepage":null,"size":2268,"stargazers_count":133,"watchers_count":133,"language":"Jupyter Notebook","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":32,"mirror_url":null,"open_issues_count":8,"forks":32,"open_issues":8,"watchers":133,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/21"},"html":{"href":"https://github.com/stitchfix/fauxtograph/pull/21"},"issue":{"href":"https://api.github.com/repos/stitchfix/fauxtograph/issues/21"},"comments":{"href":"https://api.github.com/repos/stitchfix/fauxtograph/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stitchfix/fauxtograph/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/stitchfix/fauxtograph/statuses/8812710b7d0d0bf162fb7a4acec9c4b2eec27037"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":12,"deletions":8,"changed_files":5}}
{"actor":{"display_login":"waleedka"}}