{"action":"closed","number":6,"pull_request":{"url":"https://api.github.com/repos/staffanm/ferenda/pulls/6","id":15470821,"html_url":"https://github.com/staffanm/ferenda/pull/6","diff_url":"https://github.com/staffanm/ferenda/pull/6.diff","patch_url":"https://github.com/staffanm/ferenda/pull/6.patch","issue_url":"https://api.github.com/repos/staffanm/ferenda/issues/6","number":6,"state":"closed","locked":false,"title":"Use the future module instead of six","user":{"login":"staffanm","id":4435171,"avatar_url":"https://avatars.githubusercontent.com/u/4435171?v=3","gravatar_id":"","url":"https://api.github.com/users/staffanm","html_url":"https://github.com/staffanm","followers_url":"https://api.github.com/users/staffanm/followers","following_url":"https://api.github.com/users/staffanm/following{/other_user}","gists_url":"https://api.github.com/users/staffanm/gists{/gist_id}","starred_url":"https://api.github.com/users/staffanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staffanm/subscriptions","organizations_url":"https://api.github.com/users/staffanm/orgs","repos_url":"https://api.github.com/users/staffanm/repos","events_url":"https://api.github.com/users/staffanm/events{/privacy}","received_events_url":"https://api.github.com/users/staffanm/received_events","type":"User","site_admin":false},"body":"Currently the codebase uses the six module to enable a single-source tree for both python2 and 3. This requires that the code uses six idioms and names (which are similar to what python3 uses, but not identical) A better way might be to use the future module, which -- in general -- allows for writing ideomatic python3 code, and having it magically work on python 2 as well.\r\n\r\nHowever, the branch as it stands now adds quite a bit of boilerplate, and those parts of the code that are really concerned with types (eg ferenda/elements.py) seem to require various amount of fiddling to workaround the future.builtins.types.newstr (and friends) types that future provides for python 2. Furthermore, we are heavy users of one part of the stdlib that has been massively reorganized between 2 and 3 (urllib/urlparse), and future does not directly support this part of the stdlib.","created_at":"2014-05-04T10:54:38Z","updated_at":"2016-01-27T10:19:07Z","closed_at":"2016-01-27T10:19:07Z","merged_at":null,"merge_commit_sha":"53b5a2e92978e330cf4e0c21441df48c370d4e3e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/staffanm/ferenda/pulls/6/commits","review_comments_url":"https://api.github.com/repos/staffanm/ferenda/pulls/6/comments","review_comment_url":"https://api.github.com/repos/staffanm/ferenda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/staffanm/ferenda/issues/6/comments","statuses_url":"https://api.github.com/repos/staffanm/ferenda/statuses/262dabd1757ad1dce912399b9ed33cf2aa83d2ac","head":{"label":"staffanm:feature/use-future","ref":"feature/use-future","sha":"262dabd1757ad1dce912399b9ed33cf2aa83d2ac","user":{"login":"staffanm","id":4435171,"avatar_url":"https://avatars.githubusercontent.com/u/4435171?v=3","gravatar_id":"","url":"https://api.github.com/users/staffanm","html_url":"https://github.com/staffanm","followers_url":"https://api.github.com/users/staffanm/followers","following_url":"https://api.github.com/users/staffanm/following{/other_user}","gists_url":"https://api.github.com/users/staffanm/gists{/gist_id}","starred_url":"https://api.github.com/users/staffanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staffanm/subscriptions","organizations_url":"https://api.github.com/users/staffanm/orgs","repos_url":"https://api.github.com/users/staffanm/repos","events_url":"https://api.github.com/users/staffanm/events{/privacy}","received_events_url":"https://api.github.com/users/staffanm/received_events","type":"User","site_admin":false},"repo":{"id":11680033,"name":"ferenda","full_name":"staffanm/ferenda","owner":{"login":"staffanm","id":4435171,"avatar_url":"https://avatars.githubusercontent.com/u/4435171?v=3","gravatar_id":"","url":"https://api.github.com/users/staffanm","html_url":"https://github.com/staffanm","followers_url":"https://api.github.com/users/staffanm/followers","following_url":"https://api.github.com/users/staffanm/following{/other_user}","gists_url":"https://api.github.com/users/staffanm/gists{/gist_id}","starred_url":"https://api.github.com/users/staffanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staffanm/subscriptions","organizations_url":"https://api.github.com/users/staffanm/orgs","repos_url":"https://api.github.com/users/staffanm/repos","events_url":"https://api.github.com/users/staffanm/events{/privacy}","received_events_url":"https://api.github.com/users/staffanm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/staffanm/ferenda","description":"Transform unstructured document collections to structured Linked Data","fork":false,"url":"https://api.github.com/repos/staffanm/ferenda","forks_url":"https://api.github.com/repos/staffanm/ferenda/forks","keys_url":"https://api.github.com/repos/staffanm/ferenda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/staffanm/ferenda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/staffanm/ferenda/teams","hooks_url":"https://api.github.com/repos/staffanm/ferenda/hooks","issue_events_url":"https://api.github.com/repos/staffanm/ferenda/issues/events{/number}","events_url":"https://api.github.com/repos/staffanm/ferenda/events","assignees_url":"https://api.github.com/repos/staffanm/ferenda/assignees{/user}","branches_url":"https://api.github.com/repos/staffanm/ferenda/branches{/branch}","tags_url":"https://api.github.com/repos/staffanm/ferenda/tags","blobs_url":"https://api.github.com/repos/staffanm/ferenda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/staffanm/ferenda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/staffanm/ferenda/git/refs{/sha}","trees_url":"https://api.github.com/repos/staffanm/ferenda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/staffanm/ferenda/statuses/{sha}","languages_url":"https://api.github.com/repos/staffanm/ferenda/languages","stargazers_url":"https://api.github.com/repos/staffanm/ferenda/stargazers","contributors_url":"https://api.github.com/repos/staffanm/ferenda/contributors","subscribers_url":"https://api.github.com/repos/staffanm/ferenda/subscribers","subscription_url":"https://api.github.com/repos/staffanm/ferenda/subscription","commits_url":"https://api.github.com/repos/staffanm/ferenda/commits{/sha}","git_commits_url":"https://api.github.com/repos/staffanm/ferenda/git/commits{/sha}","comments_url":"https://api.github.com/repos/staffanm/ferenda/comments{/number}","issue_comment_url":"https://api.github.com/repos/staffanm/ferenda/issues/comments{/number}","contents_url":"https://api.github.com/repos/staffanm/ferenda/contents/{+path}","compare_url":"https://api.github.com/repos/staffanm/ferenda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/staffanm/ferenda/merges","archive_url":"https://api.github.com/repos/staffanm/ferenda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/staffanm/ferenda/downloads","issues_url":"https://api.github.com/repos/staffanm/ferenda/issues{/number}","pulls_url":"https://api.github.com/repos/staffanm/ferenda/pulls{/number}","milestones_url":"https://api.github.com/repos/staffanm/ferenda/milestones{/number}","notifications_url":"https://api.github.com/repos/staffanm/ferenda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/staffanm/ferenda/labels{/name}","releases_url":"https://api.github.com/repos/staffanm/ferenda/releases{/id}","deployments_url":"https://api.github.com/repos/staffanm/ferenda/deployments","created_at":"2013-07-26T07:19:02Z","updated_at":"2016-01-27T09:03:33Z","pushed_at":"2016-01-27T09:13:35Z","git_url":"git://github.com/staffanm/ferenda.git","ssh_url":"git@github.com:staffanm/ferenda.git","clone_url":"https://github.com/staffanm/ferenda.git","svn_url":"https://github.com/staffanm/ferenda","homepage":"","size":15261,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"staffanm:master","ref":"master","sha":"ca2d1f42b4312f646d8e46a5d76aa34cbda53e3c","user":{"login":"staffanm","id":4435171,"avatar_url":"https://avatars.githubusercontent.com/u/4435171?v=3","gravatar_id":"","url":"https://api.github.com/users/staffanm","html_url":"https://github.com/staffanm","followers_url":"https://api.github.com/users/staffanm/followers","following_url":"https://api.github.com/users/staffanm/following{/other_user}","gists_url":"https://api.github.com/users/staffanm/gists{/gist_id}","starred_url":"https://api.github.com/users/staffanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staffanm/subscriptions","organizations_url":"https://api.github.com/users/staffanm/orgs","repos_url":"https://api.github.com/users/staffanm/repos","events_url":"https://api.github.com/users/staffanm/events{/privacy}","received_events_url":"https://api.github.com/users/staffanm/received_events","type":"User","site_admin":false},"repo":{"id":11680033,"name":"ferenda","full_name":"staffanm/ferenda","owner":{"login":"staffanm","id":4435171,"avatar_url":"https://avatars.githubusercontent.com/u/4435171?v=3","gravatar_id":"","url":"https://api.github.com/users/staffanm","html_url":"https://github.com/staffanm","followers_url":"https://api.github.com/users/staffanm/followers","following_url":"https://api.github.com/users/staffanm/following{/other_user}","gists_url":"https://api.github.com/users/staffanm/gists{/gist_id}","starred_url":"https://api.github.com/users/staffanm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/staffanm/subscriptions","organizations_url":"https://api.github.com/users/staffanm/orgs","repos_url":"https://api.github.com/users/staffanm/repos","events_url":"https://api.github.com/users/staffanm/events{/privacy}","received_events_url":"https://api.github.com/users/staffanm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/staffanm/ferenda","description":"Transform unstructured document collections to structured Linked Data","fork":false,"url":"https://api.github.com/repos/staffanm/ferenda","forks_url":"https://api.github.com/repos/staffanm/ferenda/forks","keys_url":"https://api.github.com/repos/staffanm/ferenda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/staffanm/ferenda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/staffanm/ferenda/teams","hooks_url":"https://api.github.com/repos/staffanm/ferenda/hooks","issue_events_url":"https://api.github.com/repos/staffanm/ferenda/issues/events{/number}","events_url":"https://api.github.com/repos/staffanm/ferenda/events","assignees_url":"https://api.github.com/repos/staffanm/ferenda/assignees{/user}","branches_url":"https://api.github.com/repos/staffanm/ferenda/branches{/branch}","tags_url":"https://api.github.com/repos/staffanm/ferenda/tags","blobs_url":"https://api.github.com/repos/staffanm/ferenda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/staffanm/ferenda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/staffanm/ferenda/git/refs{/sha}","trees_url":"https://api.github.com/repos/staffanm/ferenda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/staffanm/ferenda/statuses/{sha}","languages_url":"https://api.github.com/repos/staffanm/ferenda/languages","stargazers_url":"https://api.github.com/repos/staffanm/ferenda/stargazers","contributors_url":"https://api.github.com/repos/staffanm/ferenda/contributors","subscribers_url":"https://api.github.com/repos/staffanm/ferenda/subscribers","subscription_url":"https://api.github.com/repos/staffanm/ferenda/subscription","commits_url":"https://api.github.com/repos/staffanm/ferenda/commits{/sha}","git_commits_url":"https://api.github.com/repos/staffanm/ferenda/git/commits{/sha}","comments_url":"https://api.github.com/repos/staffanm/ferenda/comments{/number}","issue_comment_url":"https://api.github.com/repos/staffanm/ferenda/issues/comments{/number}","contents_url":"https://api.github.com/repos/staffanm/ferenda/contents/{+path}","compare_url":"https://api.github.com/repos/staffanm/ferenda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/staffanm/ferenda/merges","archive_url":"https://api.github.com/repos/staffanm/ferenda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/staffanm/ferenda/downloads","issues_url":"https://api.github.com/repos/staffanm/ferenda/issues{/number}","pulls_url":"https://api.github.com/repos/staffanm/ferenda/pulls{/number}","milestones_url":"https://api.github.com/repos/staffanm/ferenda/milestones{/number}","notifications_url":"https://api.github.com/repos/staffanm/ferenda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/staffanm/ferenda/labels{/name}","releases_url":"https://api.github.com/repos/staffanm/ferenda/releases{/id}","deployments_url":"https://api.github.com/repos/staffanm/ferenda/deployments","created_at":"2013-07-26T07:19:02Z","updated_at":"2016-01-27T09:03:33Z","pushed_at":"2016-01-27T09:13:35Z","git_url":"git://github.com/staffanm/ferenda.git","ssh_url":"git@github.com:staffanm/ferenda.git","clone_url":"https://github.com/staffanm/ferenda.git","svn_url":"https://github.com/staffanm/ferenda","homepage":"","size":15261,"stargazers_count":4,"watchers_count":4,"language":"HTML","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/staffanm/ferenda/pulls/6"},"html":{"href":"https://github.com/staffanm/ferenda/pull/6"},"issue":{"href":"https://api.github.com/repos/staffanm/ferenda/issues/6"},"comments":{"href":"https://api.github.com/repos/staffanm/ferenda/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/staffanm/ferenda/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/staffanm/ferenda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/staffanm/ferenda/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/staffanm/ferenda/statuses/262dabd1757ad1dce912399b9ed33cf2aa83d2ac"}},"merged":false,"mergeable":false,"mergeable_state":"dirty","merged_by":null,"comments":1,"review_comments":0,"commits":68,"additions":10353,"deletions":1672,"changed_files":208}}