GitHub PullRequestEvent at 2014-09-25 14:29:28
Repository: inline-python-pm
Actor: lmazuel
Payload: {"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/niner/inline-python-pm/pulls/5","id":21786413,"html_url":"https://github.com/niner/inline-python-pm/pull/5","diff_url":"https://github.com/niner/inline-python-pm/pull/5.diff","patch_url":"https://github.com/niner/inline-python-pm/pull/5.patch","issue_url":"https://api.github.com/repos/niner/inline-python-pm/issues/5","number":5,"state":"open","locked":false,"title":"Prepare for Python3 compatibility","user":{"login":"lmazuel","id":1050156,"avatar_url":"https://avatars.githubusercontent.com/u/1050156?v=2","gravatar_id":"","url":"https://api.github.com/users/lmazuel","html_url":"https://github.com/lmazuel","followers_url":"https://api.github.com/users/lmazuel/followers","following_url":"https://api.github.com/users/lmazuel/following{/other_user}","gists_url":"https://api.github.com/users/lmazuel/gists{/gist_id}","starred_url":"https://api.github.com/users/lmazuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmazuel/subscriptions","organizations_url":"https://api.github.com/users/lmazuel/orgs","repos_url":"https://api.github.com/users/lmazuel/repos","events_url":"https://api.github.com/users/lmazuel/events{/privacy}","received_events_url":"https://api.github.com/users/lmazuel/received_events","type":"User","site_admin":false},"body":"Hi,\r\n\r\nIn this commit, you'll find all the stuffs I had to do to be compliant at the same time with the C Python 3 API and the C Python 2 API, but without using a \"#if PY_MAJOR_VERSION == 3\" hack. This means:\r\n- Add parenthesis to Python code (test and Makefile.PL)\r\n- Change mixed space/tab in Python code with spaces only\r\n- Remove DL_EXPORT/DL_IMPORT Macro (deprecated since Py2.3)\r\n- Use Macro Py_TYPE, Py_REFCNT and PyVarObject_HEAD_INIT. Add \"ifndef\" since Python 2.5 does not recognize them.\r\n- Add __dir__ method to perl package and perl object (`dir` is no more looking for  `__methods` attribute in Py3)\r\n\r\nIn addition, few Py_DECREF/Py_XDECREF was missing.\r\n\r\nTested on Ubuntu 14.04 with Python 2.5.6, 2.6.9 and 2.7.6","created_at":"2014-09-25T14:29:28Z","updated_at":"2014-09-25T14:29:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/niner/inline-python-pm/pulls/5/commits","review_comments_url":"https://api.github.com/repos/niner/inline-python-pm/pulls/5/comments","review_comment_url":"https://api.github.com/repos/niner/inline-python-pm/pulls/comments/{number}","comments_url":"https://api.github.com/repos/niner/inline-python-pm/issues/5/comments","statuses_url":"https://api.github.com/repos/niner/inline-python-pm/statuses/072a54c6c7400bfcb001cfc03cf6d5bdca52e539","head":{"label":"lmazuel:master","ref":"master","sha":"072a54c6c7400bfcb001cfc03cf6d5bdca52e539","user":{"login":"lmazuel","id":1050156,"avatar_url":"https://avatars.githubusercontent.com/u/1050156?v=2","gravatar_id":"","url":"https://api.github.com/users/lmazuel","html_url":"https://github.com/lmazuel","followers_url":"https://api.github.com/users/lmazuel/followers","following_url":"https://api.github.com/users/lmazuel/following{/other_user}","gists_url":"https://api.github.com/users/lmazuel/gists{/gist_id}","starred_url":"https://api.github.com/users/lmazuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmazuel/subscriptions","organizations_url":"https://api.github.com/users/lmazuel/orgs","repos_url":"https://api.github.com/users/lmazuel/repos","events_url":"https://api.github.com/users/lmazuel/events{/privacy}","received_events_url":"https://api.github.com/users/lmazuel/received_events","type":"User","site_admin":false},"repo":{"id":24161306,"name":"inline-python-pm","full_name":"lmazuel/inline-python-pm","owner":{"login":"lmazuel","id":1050156,"avatar_url":"https://avatars.githubusercontent.com/u/1050156?v=2","gravatar_id":"","url":"https://api.github.com/users/lmazuel","html_url":"https://github.com/lmazuel","followers_url":"https://api.github.com/users/lmazuel/followers","following_url":"https://api.github.com/users/lmazuel/following{/other_user}","gists_url":"https://api.github.com/users/lmazuel/gists{/gist_id}","starred_url":"https://api.github.com/users/lmazuel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmazuel/subscriptions","organizations_url":"https://api.github.com/users/lmazuel/orgs","repos_url":"https://api.github.com/users/lmazuel/repos","events_url":"https://api.github.com/users/lmazuel/events{/privacy}","received_events_url":"https://api.github.com/users/lmazuel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lmazuel/inline-python-pm","description":"Inline::Python - Write Perl subs and classes in Python.","fork":true,"url":"https://api.github.com/repos/lmazuel/inline-python-pm","forks_url":"https://api.github.com/repos/lmazuel/inline-python-pm/forks","keys_url":"https://api.github.com/repos/lmazuel/inline-python-pm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lmazuel/inline-python-pm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lmazuel/inline-python-pm/teams","hooks_url":"https://api.github.com/repos/lmazuel/inline-python-pm/hooks","issue_events_url":"https://api.github.com/repos/lmazuel/inline-python-pm/issues/events{/number}","events_url":"https://api.github.com/repos/lmazuel/inline-python-pm/events","assignees_url":"https://api.github.com/repos/lmazuel/inline-python-pm/assignees{/user}","branches_url":"https://api.github.com/repos/lmazuel/inline-python-pm/branches{/branch}","tags_url":"https://api.github.com/repos/lmazuel/inline-python-pm/tags","blobs_url":"https://api.github.com/repos/lmazuel/inline-python-pm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lmazuel/inline-python-pm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lmazuel/inline-python-pm/git/refs{/sha}","trees_url":"https://api.github.com/repos/lmazuel/inline-python-pm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lmazuel/inline-python-pm/statuses/{sha}","languages_url":"https://api.github.com/repos/lmazuel/inline-python-pm/languages","stargazers_url":"https://api.github.com/repos/lmazuel/inline-python-pm/stargazers","contributors_url":"https://api.github.com/repos/lmazuel/inline-python-pm/contributors","subscribers_url":"https://api.github.com/repos/lmazuel/inline-python-pm/subscribers","subscription_url":"https://api.github.com/repos/lmazuel/inline-python-pm/subscription","commits_url":"https://api.github.com/repos/lmazuel/inline-python-pm/commits{/sha}","git_commits_url":"https://api.github.com/repos/lmazuel/inline-python-pm/git/commits{/sha}","comments_url":"https://api.github.com/repos/lmazuel/inline-python-pm/comments{/number}","issue_comment_url":"https://api.github.com/repos/lmazuel/inline-python-pm/issues/comments/{number}","contents_url":"https://api.github.com/repos/lmazuel/inline-python-pm/contents/{+path}","compare_url":"https://api.github.com/repos/lmazuel/inline-python-pm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lmazuel/inline-python-pm/merges","archive_url":"https://api.github.com/repos/lmazuel/inline-python-pm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lmazuel/inline-python-pm/downloads","issues_url":"https://api.github.com/repos/lmazuel/inline-python-pm/issues{/number}","pulls_url":"https://api.github.com/repos/lmazuel/inline-python-pm/pulls{/number}","milestones_url":"https://api.github.com/repos/lmazuel/inline-python-pm/milestones{/number}","notifications_url":"https://api.github.com/repos/lmazuel/inline-python-pm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lmazuel/inline-python-pm/labels{/name}","releases_url":"https://api.github.com/repos/lmazuel/inline-python-pm/releases{/id}","created_at":"2014-09-17T20:30:22Z","updated_at":"2014-09-23T13:23:49Z","pushed_at":"2014-09-25T14:19:28Z","git_url":"git://github.com/lmazuel/inline-python-pm.git","ssh_url":"git@github.com:lmazuel/inline-python-pm.git","clone_url":"https://github.com/lmazuel/inline-python-pm.git","svn_url":"https://github.com/lmazuel/inline-python-pm","homepage":"https://metacpan.org/release/Inline-Python","size":222,"stargazers_count":0,"watchers_count":0,"language":"Perl","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":"niner:master","ref":"master","sha":"78d41d55c0c927edb4311286b17b4d624ccd830b","user":{"login":"niner","id":73249,"avatar_url":"https://avatars.githubusercontent.com/u/73249?v=2","gravatar_id":"","url":"https://api.github.com/users/niner","html_url":"https://github.com/niner","followers_url":"https://api.github.com/users/niner/followers","following_url":"https://api.github.com/users/niner/following{/other_user}","gists_url":"https://api.github.com/users/niner/gists{/gist_id}","starred_url":"https://api.github.com/users/niner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niner/subscriptions","organizations_url":"https://api.github.com/users/niner/orgs","repos_url":"https://api.github.com/users/niner/repos","events_url":"https://api.github.com/users/niner/events{/privacy}","received_events_url":"https://api.github.com/users/niner/received_events","type":"User","site_admin":false},"repo":{"id":174642,"name":"inline-python-pm","full_name":"niner/inline-python-pm","owner":{"login":"niner","id":73249,"avatar_url":"https://avatars.githubusercontent.com/u/73249?v=2","gravatar_id":"","url":"https://api.github.com/users/niner","html_url":"https://github.com/niner","followers_url":"https://api.github.com/users/niner/followers","following_url":"https://api.github.com/users/niner/following{/other_user}","gists_url":"https://api.github.com/users/niner/gists{/gist_id}","starred_url":"https://api.github.com/users/niner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niner/subscriptions","organizations_url":"https://api.github.com/users/niner/orgs","repos_url":"https://api.github.com/users/niner/repos","events_url":"https://api.github.com/users/niner/events{/privacy}","received_events_url":"https://api.github.com/users/niner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niner/inline-python-pm","description":"Inline::Python - Write Perl subs and classes in Python.","fork":false,"url":"https://api.github.com/repos/niner/inline-python-pm","forks_url":"https://api.github.com/repos/niner/inline-python-pm/forks","keys_url":"https://api.github.com/repos/niner/inline-python-pm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niner/inline-python-pm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niner/inline-python-pm/teams","hooks_url":"https://api.github.com/repos/niner/inline-python-pm/hooks","issue_events_url":"https://api.github.com/repos/niner/inline-python-pm/issues/events{/number}","events_url":"https://api.github.com/repos/niner/inline-python-pm/events","assignees_url":"https://api.github.com/repos/niner/inline-python-pm/assignees{/user}","branches_url":"https://api.github.com/repos/niner/inline-python-pm/branches{/branch}","tags_url":"https://api.github.com/repos/niner/inline-python-pm/tags","blobs_url":"https://api.github.com/repos/niner/inline-python-pm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niner/inline-python-pm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niner/inline-python-pm/git/refs{/sha}","trees_url":"https://api.github.com/repos/niner/inline-python-pm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niner/inline-python-pm/statuses/{sha}","languages_url":"https://api.github.com/repos/niner/inline-python-pm/languages","stargazers_url":"https://api.github.com/repos/niner/inline-python-pm/stargazers","contributors_url":"https://api.github.com/repos/niner/inline-python-pm/contributors","subscribers_url":"https://api.github.com/repos/niner/inline-python-pm/subscribers","subscription_url":"https://api.github.com/repos/niner/inline-python-pm/subscription","commits_url":"https://api.github.com/repos/niner/inline-python-pm/commits{/sha}","git_commits_url":"https://api.github.com/repos/niner/inline-python-pm/git/commits{/sha}","comments_url":"https://api.github.com/repos/niner/inline-python-pm/comments{/number}","issue_comment_url":"https://api.github.com/repos/niner/inline-python-pm/issues/comments/{number}","contents_url":"https://api.github.com/repos/niner/inline-python-pm/contents/{+path}","compare_url":"https://api.github.com/repos/niner/inline-python-pm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niner/inline-python-pm/merges","archive_url":"https://api.github.com/repos/niner/inline-python-pm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niner/inline-python-pm/downloads","issues_url":"https://api.github.com/repos/niner/inline-python-pm/issues{/number}","pulls_url":"https://api.github.com/repos/niner/inline-python-pm/pulls{/number}","milestones_url":"https://api.github.com/repos/niner/inline-python-pm/milestones{/number}","notifications_url":"https://api.github.com/repos/niner/inline-python-pm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niner/inline-python-pm/labels{/name}","releases_url":"https://api.github.com/repos/niner/inline-python-pm/releases{/id}","created_at":"2009-04-13T10:47:25Z","updated_at":"2014-09-17T13:43:52Z","pushed_at":"2014-09-23T17:00:10Z","git_url":"git://github.com/niner/inline-python-pm.git","ssh_url":"git@github.com:niner/inline-python-pm.git","clone_url":"https://github.com/niner/inline-python-pm.git","svn_url":"https://github.com/niner/inline-python-pm","homepage":"https://metacpan.org/release/Inline-Python","size":356,"stargazers_count":6,"watchers_count":6,"language":"Perl","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/niner/inline-python-pm/pulls/5"},"html":{"href":"https://github.com/niner/inline-python-pm/pull/5"},"issue":{"href":"https://api.github.com/repos/niner/inline-python-pm/issues/5"},"comments":{"href":"https://api.github.com/repos/niner/inline-python-pm/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/niner/inline-python-pm/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/niner/inline-python-pm/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/niner/inline-python-pm/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/niner/inline-python-pm/statuses/072a54c6c7400bfcb001cfc03cf6d5bdca52e539"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":160,"deletions":117,"changed_files":22}}