{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/zzzeek/alembic/pulls/23","id":53762104,"html_url":"https://github.com/zzzeek/alembic/pull/23","diff_url":"https://github.com/zzzeek/alembic/pull/23.diff","patch_url":"https://github.com/zzzeek/alembic/pull/23.patch","issue_url":"https://api.github.com/repos/zzzeek/alembic/issues/23","number":23,"state":"closed","locked":false,"title":"Duplicate `reraise` and `raise_from_cause` definitions.","user":{"login":"schmiddy","id":1028135,"avatar_url":"https://avatars.githubusercontent.com/u/1028135?v=3","gravatar_id":"","url":"https://api.github.com/users/schmiddy","html_url":"https://github.com/schmiddy","followers_url":"https://api.github.com/users/schmiddy/followers","following_url":"https://api.github.com/users/schmiddy/following{/other_user}","gists_url":"https://api.github.com/users/schmiddy/gists{/gist_id}","starred_url":"https://api.github.com/users/schmiddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmiddy/subscriptions","organizations_url":"https://api.github.com/users/schmiddy/orgs","repos_url":"https://api.github.com/users/schmiddy/repos","events_url":"https://api.github.com/users/schmiddy/events{/privacy}","received_events_url":"https://api.github.com/users/schmiddy/received_events","type":"User","site_admin":false},"body":"Unless I'm missing something, it sure seems like `reraise` and `raise_from_cause` are defined twice, for both the `if py3k:` case and the non-py3k case. I'm guessing some copy-paste error; one of the duplicated comment lines looks like it got truncated:\r\n\r\n            # not as nice as that of Py3K, but at least preserv\r\n\r\nAnd the identical snippet in [sqlalchemy/util/compat.py](https://github.com/zzzeek/sqlalchemy/blob/master/lib/sqlalchemy/util/compat.py#L177) (perhaps the original source of this code?) doesn't redefine these functions.\r\n\r\nI happened to notice this apparent bug from a pylint complaint about \"function-redefined\".","created_at":"2015-12-15T21:06:27Z","updated_at":"2015-12-15T21:44:06Z","closed_at":"2015-12-15T21:44:06Z","merged_at":"2015-12-15T21:44:05Z","merge_commit_sha":"514ecde73769416b70c2469cbddaa62b667e8b75","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zzzeek/alembic/pulls/23/commits","review_comments_url":"https://api.github.com/repos/zzzeek/alembic/pulls/23/comments","review_comment_url":"https://api.github.com/repos/zzzeek/alembic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zzzeek/alembic/issues/23/comments","statuses_url":"https://api.github.com/repos/zzzeek/alembic/statuses/a0d124b62633ff40b1e2bfb93b5d6054ef96994f","head":{"label":"schmiddy:duplicate-compat-code","ref":"duplicate-compat-code","sha":"a0d124b62633ff40b1e2bfb93b5d6054ef96994f","user":{"login":"schmiddy","id":1028135,"avatar_url":"https://avatars.githubusercontent.com/u/1028135?v=3","gravatar_id":"","url":"https://api.github.com/users/schmiddy","html_url":"https://github.com/schmiddy","followers_url":"https://api.github.com/users/schmiddy/followers","following_url":"https://api.github.com/users/schmiddy/following{/other_user}","gists_url":"https://api.github.com/users/schmiddy/gists{/gist_id}","starred_url":"https://api.github.com/users/schmiddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmiddy/subscriptions","organizations_url":"https://api.github.com/users/schmiddy/orgs","repos_url":"https://api.github.com/users/schmiddy/repos","events_url":"https://api.github.com/users/schmiddy/events{/privacy}","received_events_url":"https://api.github.com/users/schmiddy/received_events","type":"User","site_admin":false},"repo":{"id":48053893,"name":"alembic","full_name":"schmiddy/alembic","owner":{"login":"schmiddy","id":1028135,"avatar_url":"https://avatars.githubusercontent.com/u/1028135?v=3","gravatar_id":"","url":"https://api.github.com/users/schmiddy","html_url":"https://github.com/schmiddy","followers_url":"https://api.github.com/users/schmiddy/followers","following_url":"https://api.github.com/users/schmiddy/following{/other_user}","gists_url":"https://api.github.com/users/schmiddy/gists{/gist_id}","starred_url":"https://api.github.com/users/schmiddy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schmiddy/subscriptions","organizations_url":"https://api.github.com/users/schmiddy/orgs","repos_url":"https://api.github.com/users/schmiddy/repos","events_url":"https://api.github.com/users/schmiddy/events{/privacy}","received_events_url":"https://api.github.com/users/schmiddy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/schmiddy/alembic","description":"Github mirror of Alembic","fork":true,"url":"https://api.github.com/repos/schmiddy/alembic","forks_url":"https://api.github.com/repos/schmiddy/alembic/forks","keys_url":"https://api.github.com/repos/schmiddy/alembic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/schmiddy/alembic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/schmiddy/alembic/teams","hooks_url":"https://api.github.com/repos/schmiddy/alembic/hooks","issue_events_url":"https://api.github.com/repos/schmiddy/alembic/issues/events{/number}","events_url":"https://api.github.com/repos/schmiddy/alembic/events","assignees_url":"https://api.github.com/repos/schmiddy/alembic/assignees{/user}","branches_url":"https://api.github.com/repos/schmiddy/alembic/branches{/branch}","tags_url":"https://api.github.com/repos/schmiddy/alembic/tags","blobs_url":"https://api.github.com/repos/schmiddy/alembic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/schmiddy/alembic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/schmiddy/alembic/git/refs{/sha}","trees_url":"https://api.github.com/repos/schmiddy/alembic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/schmiddy/alembic/statuses/{sha}","languages_url":"https://api.github.com/repos/schmiddy/alembic/languages","stargazers_url":"https://api.github.com/repos/schmiddy/alembic/stargazers","contributors_url":"https://api.github.com/repos/schmiddy/alembic/contributors","subscribers_url":"https://api.github.com/repos/schmiddy/alembic/subscribers","subscription_url":"https://api.github.com/repos/schmiddy/alembic/subscription","commits_url":"https://api.github.com/repos/schmiddy/alembic/commits{/sha}","git_commits_url":"https://api.github.com/repos/schmiddy/alembic/git/commits{/sha}","comments_url":"https://api.github.com/repos/schmiddy/alembic/comments{/number}","issue_comment_url":"https://api.github.com/repos/schmiddy/alembic/issues/comments{/number}","contents_url":"https://api.github.com/repos/schmiddy/alembic/contents/{+path}","compare_url":"https://api.github.com/repos/schmiddy/alembic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/schmiddy/alembic/merges","archive_url":"https://api.github.com/repos/schmiddy/alembic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/schmiddy/alembic/downloads","issues_url":"https://api.github.com/repos/schmiddy/alembic/issues{/number}","pulls_url":"https://api.github.com/repos/schmiddy/alembic/pulls{/number}","milestones_url":"https://api.github.com/repos/schmiddy/alembic/milestones{/number}","notifications_url":"https://api.github.com/repos/schmiddy/alembic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/schmiddy/alembic/labels{/name}","releases_url":"https://api.github.com/repos/schmiddy/alembic/releases{/id}","created_at":"2015-12-15T16:03:23Z","updated_at":"2015-12-15T16:03:24Z","pushed_at":"2015-12-15T21:00:09Z","git_url":"git://github.com/schmiddy/alembic.git","ssh_url":"git@github.com:schmiddy/alembic.git","clone_url":"https://github.com/schmiddy/alembic.git","svn_url":"https://github.com/schmiddy/alembic","homepage":null,"size":3216,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"zzzeek:master","ref":"master","sha":"da7d599418721c80a59aa000733cc63908913e56","user":{"login":"zzzeek","id":128223,"avatar_url":"https://avatars.githubusercontent.com/u/128223?v=3","gravatar_id":"","url":"https://api.github.com/users/zzzeek","html_url":"https://github.com/zzzeek","followers_url":"https://api.github.com/users/zzzeek/followers","following_url":"https://api.github.com/users/zzzeek/following{/other_user}","gists_url":"https://api.github.com/users/zzzeek/gists{/gist_id}","starred_url":"https://api.github.com/users/zzzeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzzeek/subscriptions","organizations_url":"https://api.github.com/users/zzzeek/orgs","repos_url":"https://api.github.com/users/zzzeek/repos","events_url":"https://api.github.com/users/zzzeek/events{/privacy}","received_events_url":"https://api.github.com/users/zzzeek/received_events","type":"User","site_admin":false},"repo":{"id":10230296,"name":"alembic","full_name":"zzzeek/alembic","owner":{"login":"zzzeek","id":128223,"avatar_url":"https://avatars.githubusercontent.com/u/128223?v=3","gravatar_id":"","url":"https://api.github.com/users/zzzeek","html_url":"https://github.com/zzzeek","followers_url":"https://api.github.com/users/zzzeek/followers","following_url":"https://api.github.com/users/zzzeek/following{/other_user}","gists_url":"https://api.github.com/users/zzzeek/gists{/gist_id}","starred_url":"https://api.github.com/users/zzzeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzzeek/subscriptions","organizations_url":"https://api.github.com/users/zzzeek/orgs","repos_url":"https://api.github.com/users/zzzeek/repos","events_url":"https://api.github.com/users/zzzeek/events{/privacy}","received_events_url":"https://api.github.com/users/zzzeek/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zzzeek/alembic","description":"Github mirror of Alembic","fork":false,"url":"https://api.github.com/repos/zzzeek/alembic","forks_url":"https://api.github.com/repos/zzzeek/alembic/forks","keys_url":"https://api.github.com/repos/zzzeek/alembic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zzzeek/alembic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zzzeek/alembic/teams","hooks_url":"https://api.github.com/repos/zzzeek/alembic/hooks","issue_events_url":"https://api.github.com/repos/zzzeek/alembic/issues/events{/number}","events_url":"https://api.github.com/repos/zzzeek/alembic/events","assignees_url":"https://api.github.com/repos/zzzeek/alembic/assignees{/user}","branches_url":"https://api.github.com/repos/zzzeek/alembic/branches{/branch}","tags_url":"https://api.github.com/repos/zzzeek/alembic/tags","blobs_url":"https://api.github.com/repos/zzzeek/alembic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zzzeek/alembic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zzzeek/alembic/git/refs{/sha}","trees_url":"https://api.github.com/repos/zzzeek/alembic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zzzeek/alembic/statuses/{sha}","languages_url":"https://api.github.com/repos/zzzeek/alembic/languages","stargazers_url":"https://api.github.com/repos/zzzeek/alembic/stargazers","contributors_url":"https://api.github.com/repos/zzzeek/alembic/contributors","subscribers_url":"https://api.github.com/repos/zzzeek/alembic/subscribers","subscription_url":"https://api.github.com/repos/zzzeek/alembic/subscription","commits_url":"https://api.github.com/repos/zzzeek/alembic/commits{/sha}","git_commits_url":"https://api.github.com/repos/zzzeek/alembic/git/commits{/sha}","comments_url":"https://api.github.com/repos/zzzeek/alembic/comments{/number}","issue_comment_url":"https://api.github.com/repos/zzzeek/alembic/issues/comments{/number}","contents_url":"https://api.github.com/repos/zzzeek/alembic/contents/{+path}","compare_url":"https://api.github.com/repos/zzzeek/alembic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zzzeek/alembic/merges","archive_url":"https://api.github.com/repos/zzzeek/alembic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zzzeek/alembic/downloads","issues_url":"https://api.github.com/repos/zzzeek/alembic/issues{/number}","pulls_url":"https://api.github.com/repos/zzzeek/alembic/pulls{/number}","milestones_url":"https://api.github.com/repos/zzzeek/alembic/milestones{/number}","notifications_url":"https://api.github.com/repos/zzzeek/alembic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zzzeek/alembic/labels{/name}","releases_url":"https://api.github.com/repos/zzzeek/alembic/releases{/id}","created_at":"2013-05-22T21:37:41Z","updated_at":"2015-12-14T18:02:46Z","pushed_at":"2015-12-15T21:44:04Z","git_url":"git://github.com/zzzeek/alembic.git","ssh_url":"git@github.com:zzzeek/alembic.git","clone_url":"https://github.com/zzzeek/alembic.git","svn_url":"https://github.com/zzzeek/alembic","homepage":null,"size":3254,"stargazers_count":150,"watchers_count":150,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":31,"mirror_url":null,"open_issues_count":2,"forks":31,"open_issues":2,"watchers":150,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zzzeek/alembic/pulls/23"},"html":{"href":"https://github.com/zzzeek/alembic/pull/23"},"issue":{"href":"https://api.github.com/repos/zzzeek/alembic/issues/23"},"comments":{"href":"https://api.github.com/repos/zzzeek/alembic/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/zzzeek/alembic/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/zzzeek/alembic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zzzeek/alembic/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/zzzeek/alembic/statuses/a0d124b62633ff40b1e2bfb93b5d6054ef96994f"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"zzzeek","id":128223,"avatar_url":"https://avatars.githubusercontent.com/u/128223?v=3","gravatar_id":"","url":"https://api.github.com/users/zzzeek","html_url":"https://github.com/zzzeek","followers_url":"https://api.github.com/users/zzzeek/followers","following_url":"https://api.github.com/users/zzzeek/following{/other_user}","gists_url":"https://api.github.com/users/zzzeek/gists{/gist_id}","starred_url":"https://api.github.com/users/zzzeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zzzeek/subscriptions","organizations_url":"https://api.github.com/users/zzzeek/orgs","repos_url":"https://api.github.com/users/zzzeek/repos","events_url":"https://api.github.com/users/zzzeek/events{/privacy}","received_events_url":"https://api.github.com/users/zzzeek/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":0,"deletions":26,"changed_files":1}}