{"action":"opened","number":39,"pull_request":{"url":"https://api.github.com/repos/eliben/pss/pulls/39","id":99247210,"html_url":"https://github.com/eliben/pss/pull/39","diff_url":"https://github.com/eliben/pss/pull/39.diff","patch_url":"https://github.com/eliben/pss/pull/39.patch","issue_url":"https://api.github.com/repos/eliben/pss/issues/39","number":39,"state":"open","locked":false,"title":"Improve option parsing.","user":{"login":"zondo","id":810102,"avatar_url":"https://avatars.githubusercontent.com/u/810102?v=3","gravatar_id":"","url":"https://api.github.com/users/zondo","html_url":"https://github.com/zondo","followers_url":"https://api.github.com/users/zondo/followers","following_url":"https://api.github.com/users/zondo/following{/other_user}","gists_url":"https://api.github.com/users/zondo/gists{/gist_id}","starred_url":"https://api.github.com/users/zondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zondo/subscriptions","organizations_url":"https://api.github.com/users/zondo/orgs","repos_url":"https://api.github.com/users/zondo/repos","events_url":"https://api.github.com/users/zondo/events{/privacy}","received_events_url":"https://api.github.com/users/zondo/received_events","type":"User","site_admin":false},"body":"Changes:\r\n\r\n- use argparse instead of optparse\r\n- allow options in @-style option files\r\n- document @-style options in program help message\r\n- add simple unit test\r\n- remove VersionPrinted exception (no longer required)\r\n\r\nThe docs mention that pss support py2.6, but tox tests don't test it.  If you accept this patch and want to keep py2.6 support, you could add 'argparse-safe' to the dependency list (which would install it only if running py2.6).\r\n\r\nCheers,\r\n\r\nGlenn","created_at":"2016-12-23T14:18:07Z","updated_at":"2016-12-23T14:18:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/eliben/pss/pulls/39/commits","review_comments_url":"https://api.github.com/repos/eliben/pss/pulls/39/comments","review_comment_url":"https://api.github.com/repos/eliben/pss/pulls/comments{/number}","comments_url":"https://api.github.com/repos/eliben/pss/issues/39/comments","statuses_url":"https://api.github.com/repos/eliben/pss/statuses/7cea82d53fc3891e38ce699460bffe25ae54db95","head":{"label":"zondo:master","ref":"master","sha":"7cea82d53fc3891e38ce699460bffe25ae54db95","user":{"login":"zondo","id":810102,"avatar_url":"https://avatars.githubusercontent.com/u/810102?v=3","gravatar_id":"","url":"https://api.github.com/users/zondo","html_url":"https://github.com/zondo","followers_url":"https://api.github.com/users/zondo/followers","following_url":"https://api.github.com/users/zondo/following{/other_user}","gists_url":"https://api.github.com/users/zondo/gists{/gist_id}","starred_url":"https://api.github.com/users/zondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zondo/subscriptions","organizations_url":"https://api.github.com/users/zondo/orgs","repos_url":"https://api.github.com/users/zondo/repos","events_url":"https://api.github.com/users/zondo/events{/privacy}","received_events_url":"https://api.github.com/users/zondo/received_events","type":"User","site_admin":false},"repo":{"id":77210629,"name":"pss","full_name":"zondo/pss","owner":{"login":"zondo","id":810102,"avatar_url":"https://avatars.githubusercontent.com/u/810102?v=3","gravatar_id":"","url":"https://api.github.com/users/zondo","html_url":"https://github.com/zondo","followers_url":"https://api.github.com/users/zondo/followers","following_url":"https://api.github.com/users/zondo/following{/other_user}","gists_url":"https://api.github.com/users/zondo/gists{/gist_id}","starred_url":"https://api.github.com/users/zondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zondo/subscriptions","organizations_url":"https://api.github.com/users/zondo/orgs","repos_url":"https://api.github.com/users/zondo/repos","events_url":"https://api.github.com/users/zondo/events{/privacy}","received_events_url":"https://api.github.com/users/zondo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zondo/pss","description":"pss is a power-tool for searching inside source code files.","fork":true,"url":"https://api.github.com/repos/zondo/pss","forks_url":"https://api.github.com/repos/zondo/pss/forks","keys_url":"https://api.github.com/repos/zondo/pss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zondo/pss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zondo/pss/teams","hooks_url":"https://api.github.com/repos/zondo/pss/hooks","issue_events_url":"https://api.github.com/repos/zondo/pss/issues/events{/number}","events_url":"https://api.github.com/repos/zondo/pss/events","assignees_url":"https://api.github.com/repos/zondo/pss/assignees{/user}","branches_url":"https://api.github.com/repos/zondo/pss/branches{/branch}","tags_url":"https://api.github.com/repos/zondo/pss/tags","blobs_url":"https://api.github.com/repos/zondo/pss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zondo/pss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zondo/pss/git/refs{/sha}","trees_url":"https://api.github.com/repos/zondo/pss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zondo/pss/statuses/{sha}","languages_url":"https://api.github.com/repos/zondo/pss/languages","stargazers_url":"https://api.github.com/repos/zondo/pss/stargazers","contributors_url":"https://api.github.com/repos/zondo/pss/contributors","subscribers_url":"https://api.github.com/repos/zondo/pss/subscribers","subscription_url":"https://api.github.com/repos/zondo/pss/subscription","commits_url":"https://api.github.com/repos/zondo/pss/commits{/sha}","git_commits_url":"https://api.github.com/repos/zondo/pss/git/commits{/sha}","comments_url":"https://api.github.com/repos/zondo/pss/comments{/number}","issue_comment_url":"https://api.github.com/repos/zondo/pss/issues/comments{/number}","contents_url":"https://api.github.com/repos/zondo/pss/contents/{+path}","compare_url":"https://api.github.com/repos/zondo/pss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zondo/pss/merges","archive_url":"https://api.github.com/repos/zondo/pss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zondo/pss/downloads","issues_url":"https://api.github.com/repos/zondo/pss/issues{/number}","pulls_url":"https://api.github.com/repos/zondo/pss/pulls{/number}","milestones_url":"https://api.github.com/repos/zondo/pss/milestones{/number}","notifications_url":"https://api.github.com/repos/zondo/pss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zondo/pss/labels{/name}","releases_url":"https://api.github.com/repos/zondo/pss/releases{/id}","deployments_url":"https://api.github.com/repos/zondo/pss/deployments","created_at":"2016-12-23T08:27:56Z","updated_at":"2016-12-23T08:27:59Z","pushed_at":"2016-12-23T13:57:25Z","git_url":"git://github.com/zondo/pss.git","ssh_url":"git@github.com:zondo/pss.git","clone_url":"https://github.com/zondo/pss.git","svn_url":"https://github.com/zondo/pss","homepage":null,"size":206,"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":"eliben:master","ref":"master","sha":"96071a66b6fb64060a65ab06cbae4d75f5a6779c","user":{"login":"eliben","id":1130906,"avatar_url":"https://avatars.githubusercontent.com/u/1130906?v=3","gravatar_id":"","url":"https://api.github.com/users/eliben","html_url":"https://github.com/eliben","followers_url":"https://api.github.com/users/eliben/followers","following_url":"https://api.github.com/users/eliben/following{/other_user}","gists_url":"https://api.github.com/users/eliben/gists{/gist_id}","starred_url":"https://api.github.com/users/eliben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliben/subscriptions","organizations_url":"https://api.github.com/users/eliben/orgs","repos_url":"https://api.github.com/users/eliben/repos","events_url":"https://api.github.com/users/eliben/events{/privacy}","received_events_url":"https://api.github.com/users/eliben/received_events","type":"User","site_admin":false},"repo":{"id":10335888,"name":"pss","full_name":"eliben/pss","owner":{"login":"eliben","id":1130906,"avatar_url":"https://avatars.githubusercontent.com/u/1130906?v=3","gravatar_id":"","url":"https://api.github.com/users/eliben","html_url":"https://github.com/eliben","followers_url":"https://api.github.com/users/eliben/followers","following_url":"https://api.github.com/users/eliben/following{/other_user}","gists_url":"https://api.github.com/users/eliben/gists{/gist_id}","starred_url":"https://api.github.com/users/eliben/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eliben/subscriptions","organizations_url":"https://api.github.com/users/eliben/orgs","repos_url":"https://api.github.com/users/eliben/repos","events_url":"https://api.github.com/users/eliben/events{/privacy}","received_events_url":"https://api.github.com/users/eliben/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/eliben/pss","description":"pss is a power-tool for searching inside source code files.","fork":false,"url":"https://api.github.com/repos/eliben/pss","forks_url":"https://api.github.com/repos/eliben/pss/forks","keys_url":"https://api.github.com/repos/eliben/pss/keys{/key_id}","collaborators_url":"https://api.github.com/repos/eliben/pss/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/eliben/pss/teams","hooks_url":"https://api.github.com/repos/eliben/pss/hooks","issue_events_url":"https://api.github.com/repos/eliben/pss/issues/events{/number}","events_url":"https://api.github.com/repos/eliben/pss/events","assignees_url":"https://api.github.com/repos/eliben/pss/assignees{/user}","branches_url":"https://api.github.com/repos/eliben/pss/branches{/branch}","tags_url":"https://api.github.com/repos/eliben/pss/tags","blobs_url":"https://api.github.com/repos/eliben/pss/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/eliben/pss/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/eliben/pss/git/refs{/sha}","trees_url":"https://api.github.com/repos/eliben/pss/git/trees{/sha}","statuses_url":"https://api.github.com/repos/eliben/pss/statuses/{sha}","languages_url":"https://api.github.com/repos/eliben/pss/languages","stargazers_url":"https://api.github.com/repos/eliben/pss/stargazers","contributors_url":"https://api.github.com/repos/eliben/pss/contributors","subscribers_url":"https://api.github.com/repos/eliben/pss/subscribers","subscription_url":"https://api.github.com/repos/eliben/pss/subscription","commits_url":"https://api.github.com/repos/eliben/pss/commits{/sha}","git_commits_url":"https://api.github.com/repos/eliben/pss/git/commits{/sha}","comments_url":"https://api.github.com/repos/eliben/pss/comments{/number}","issue_comment_url":"https://api.github.com/repos/eliben/pss/issues/comments{/number}","contents_url":"https://api.github.com/repos/eliben/pss/contents/{+path}","compare_url":"https://api.github.com/repos/eliben/pss/compare/{base}...{head}","merges_url":"https://api.github.com/repos/eliben/pss/merges","archive_url":"https://api.github.com/repos/eliben/pss/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/eliben/pss/downloads","issues_url":"https://api.github.com/repos/eliben/pss/issues{/number}","pulls_url":"https://api.github.com/repos/eliben/pss/pulls{/number}","milestones_url":"https://api.github.com/repos/eliben/pss/milestones{/number}","notifications_url":"https://api.github.com/repos/eliben/pss/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/eliben/pss/labels{/name}","releases_url":"https://api.github.com/repos/eliben/pss/releases{/id}","deployments_url":"https://api.github.com/repos/eliben/pss/deployments","created_at":"2013-05-28T13:10:57Z","updated_at":"2016-12-23T08:27:43Z","pushed_at":"2016-12-22T13:15:13Z","git_url":"git://github.com/eliben/pss.git","ssh_url":"git@github.com:eliben/pss.git","clone_url":"https://github.com/eliben/pss.git","svn_url":"https://github.com/eliben/pss","homepage":null,"size":206,"stargazers_count":184,"watchers_count":184,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":2,"forks":30,"open_issues":2,"watchers":184,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/eliben/pss/pulls/39"},"html":{"href":"https://github.com/eliben/pss/pull/39"},"issue":{"href":"https://api.github.com/repos/eliben/pss/issues/39"},"comments":{"href":"https://api.github.com/repos/eliben/pss/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/eliben/pss/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/eliben/pss/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/eliben/pss/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/eliben/pss/statuses/7cea82d53fc3891e38ce699460bffe25ae54db95"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":147,"deletions":107,"changed_files":3}}
{"actor":{"display_login":"zondo"}}