{"action":"created","comment":{"url":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/comments/49176387","id":49176387,"diff_hunk":"@@ -184,29 +186,29 @@ def genTagsFile(output, tags, sort):\n def main():\n     from optparse import OptionParser\n \n-    parser = OptionParser(usage = \"usage: %prog [options] file(s)\",\n-                          version = __version__)\n+    parser = OptionParser(usage=\"usage: %prog [options] file(s)\",\n+                          version=__version__)\n     parser.add_option(\n-            \"-f\", \"--file\", metavar = \"FILE\", dest = \"tagfile\",\n-            default = \"tags\",\n-            help = 'Write tags into FILE (default: \"tags\").  Use \"-\" to write '\n-                   'tags to stdout.')\n+        \"-f\", \"--file\", metavar=\"FILE\", dest=\"tagfile\",\n+        default=\"tags\",\n+        help='Write tags into FILE (default: \"tags\").  Use \"-\" to write '\n+        'tags to stdout.')\n     parser.add_option(\n-            \"\", \"--sort\", metavar=\"[yes|foldcase|no]\", dest = \"sort\",\n-            choices = [\"yes\", \"no\", \"foldcase\"],\n-            default = \"yes\",\n-            help = 'Produce sorted output.  Acceptable values are \"yes\", '\n-                   '\"no\", and \"foldcase\".  Default is \"yes\".')\n+        \"--sort\", metavar=\"[yes|foldcase|no]\", dest=\"sort\",\n+        choices=[\"yes\", \"no\", \"foldcase\"],\n+        default=\"yes\",\n+        help='Produce sorted output.  Acceptable values are \"yes\", '\n+        '\"no\", and \"foldcase\".  Default is \"yes\".')\n \n     options, args = parser.parse_args()\n \n     if options.tagfile == '-':\n         output = sys.stdout\n     else:\n-        output = open(options.tagfile, 'wb')\n+        output = open(options.tagfile, 'w')\n \n     for filename in args:\n-        f = open(filename, 'rb')\n+        f = open(filename, 'r')","path":"markdown2ctags.py","position":80,"original_position":80,"commit_id":"85783a0e82f5b297790210d143bcab18828aa072","original_commit_id":"85783a0e82f5b297790210d143bcab18828aa072","user":{"login":"jszakmeister","id":448087,"avatar_url":"https://avatars.githubusercontent.com/u/448087?v=3","gravatar_id":"","url":"https://api.github.com/users/jszakmeister","html_url":"https://github.com/jszakmeister","followers_url":"https://api.github.com/users/jszakmeister/followers","following_url":"https://api.github.com/users/jszakmeister/following{/other_user}","gists_url":"https://api.github.com/users/jszakmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/jszakmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jszakmeister/subscriptions","organizations_url":"https://api.github.com/users/jszakmeister/orgs","repos_url":"https://api.github.com/users/jszakmeister/repos","events_url":"https://api.github.com/users/jszakmeister/events{/privacy}","received_events_url":"https://api.github.com/users/jszakmeister/received_events","type":"User","site_admin":false},"body":"How does this work out with files with other encodings?","created_at":"2016-01-08T10:42:12Z","updated_at":"2016-01-08T10:42:12Z","html_url":"https://github.com/jszakmeister/markdown2ctags/pull/5#discussion_r49176387","pull_request_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/comments/49176387"},"html":{"href":"https://github.com/jszakmeister/markdown2ctags/pull/5#discussion_r49176387"},"pull_request":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5","id":55346485,"html_url":"https://github.com/jszakmeister/markdown2ctags/pull/5","diff_url":"https://github.com/jszakmeister/markdown2ctags/pull/5.diff","patch_url":"https://github.com/jszakmeister/markdown2ctags/pull/5.patch","issue_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/issues/5","number":5,"state":"open","locked":false,"title":"python3 support and make it as a vim plugin","user":{"login":"lisongmin","id":2513062,"avatar_url":"https://avatars.githubusercontent.com/u/2513062?v=3","gravatar_id":"","url":"https://api.github.com/users/lisongmin","html_url":"https://github.com/lisongmin","followers_url":"https://api.github.com/users/lisongmin/followers","following_url":"https://api.github.com/users/lisongmin/following{/other_user}","gists_url":"https://api.github.com/users/lisongmin/gists{/gist_id}","starred_url":"https://api.github.com/users/lisongmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisongmin/subscriptions","organizations_url":"https://api.github.com/users/lisongmin/orgs","repos_url":"https://api.github.com/users/lisongmin/repos","events_url":"https://api.github.com/users/lisongmin/events{/privacy}","received_events_url":"https://api.github.com/users/lisongmin/received_events","type":"User","site_admin":false},"body":"\r\npython2/python3 is all supported with this pr,\r\nand a vim plugin is added so that we can quick install and less configuration.","created_at":"2016-01-07T14:56:01Z","updated_at":"2016-01-08T10:42:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5882201a59ab840444ff8600d8de43cbdb4a7f92","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5/commits","review_comments_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5/comments","review_comment_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/issues/5/comments","statuses_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/statuses/85783a0e82f5b297790210d143bcab18828aa072","head":{"label":"lisongmin:master","ref":"master","sha":"85783a0e82f5b297790210d143bcab18828aa072","user":{"login":"lisongmin","id":2513062,"avatar_url":"https://avatars.githubusercontent.com/u/2513062?v=3","gravatar_id":"","url":"https://api.github.com/users/lisongmin","html_url":"https://github.com/lisongmin","followers_url":"https://api.github.com/users/lisongmin/followers","following_url":"https://api.github.com/users/lisongmin/following{/other_user}","gists_url":"https://api.github.com/users/lisongmin/gists{/gist_id}","starred_url":"https://api.github.com/users/lisongmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisongmin/subscriptions","organizations_url":"https://api.github.com/users/lisongmin/orgs","repos_url":"https://api.github.com/users/lisongmin/repos","events_url":"https://api.github.com/users/lisongmin/events{/privacy}","received_events_url":"https://api.github.com/users/lisongmin/received_events","type":"User","site_admin":false},"repo":{"id":49205066,"name":"markdown2ctags","full_name":"lisongmin/markdown2ctags","owner":{"login":"lisongmin","id":2513062,"avatar_url":"https://avatars.githubusercontent.com/u/2513062?v=3","gravatar_id":"","url":"https://api.github.com/users/lisongmin","html_url":"https://github.com/lisongmin","followers_url":"https://api.github.com/users/lisongmin/followers","following_url":"https://api.github.com/users/lisongmin/following{/other_user}","gists_url":"https://api.github.com/users/lisongmin/gists{/gist_id}","starred_url":"https://api.github.com/users/lisongmin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lisongmin/subscriptions","organizations_url":"https://api.github.com/users/lisongmin/orgs","repos_url":"https://api.github.com/users/lisongmin/repos","events_url":"https://api.github.com/users/lisongmin/events{/privacy}","received_events_url":"https://api.github.com/users/lisongmin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lisongmin/markdown2ctags","description":"Generate ctags-compatible tags files for Markdown documents.","fork":true,"url":"https://api.github.com/repos/lisongmin/markdown2ctags","forks_url":"https://api.github.com/repos/lisongmin/markdown2ctags/forks","keys_url":"https://api.github.com/repos/lisongmin/markdown2ctags/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lisongmin/markdown2ctags/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lisongmin/markdown2ctags/teams","hooks_url":"https://api.github.com/repos/lisongmin/markdown2ctags/hooks","issue_events_url":"https://api.github.com/repos/lisongmin/markdown2ctags/issues/events{/number}","events_url":"https://api.github.com/repos/lisongmin/markdown2ctags/events","assignees_url":"https://api.github.com/repos/lisongmin/markdown2ctags/assignees{/user}","branches_url":"https://api.github.com/repos/lisongmin/markdown2ctags/branches{/branch}","tags_url":"https://api.github.com/repos/lisongmin/markdown2ctags/tags","blobs_url":"https://api.github.com/repos/lisongmin/markdown2ctags/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lisongmin/markdown2ctags/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lisongmin/markdown2ctags/git/refs{/sha}","trees_url":"https://api.github.com/repos/lisongmin/markdown2ctags/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lisongmin/markdown2ctags/statuses/{sha}","languages_url":"https://api.github.com/repos/lisongmin/markdown2ctags/languages","stargazers_url":"https://api.github.com/repos/lisongmin/markdown2ctags/stargazers","contributors_url":"https://api.github.com/repos/lisongmin/markdown2ctags/contributors","subscribers_url":"https://api.github.com/repos/lisongmin/markdown2ctags/subscribers","subscription_url":"https://api.github.com/repos/lisongmin/markdown2ctags/subscription","commits_url":"https://api.github.com/repos/lisongmin/markdown2ctags/commits{/sha}","git_commits_url":"https://api.github.com/repos/lisongmin/markdown2ctags/git/commits{/sha}","comments_url":"https://api.github.com/repos/lisongmin/markdown2ctags/comments{/number}","issue_comment_url":"https://api.github.com/repos/lisongmin/markdown2ctags/issues/comments{/number}","contents_url":"https://api.github.com/repos/lisongmin/markdown2ctags/contents/{+path}","compare_url":"https://api.github.com/repos/lisongmin/markdown2ctags/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lisongmin/markdown2ctags/merges","archive_url":"https://api.github.com/repos/lisongmin/markdown2ctags/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lisongmin/markdown2ctags/downloads","issues_url":"https://api.github.com/repos/lisongmin/markdown2ctags/issues{/number}","pulls_url":"https://api.github.com/repos/lisongmin/markdown2ctags/pulls{/number}","milestones_url":"https://api.github.com/repos/lisongmin/markdown2ctags/milestones{/number}","notifications_url":"https://api.github.com/repos/lisongmin/markdown2ctags/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lisongmin/markdown2ctags/labels{/name}","releases_url":"https://api.github.com/repos/lisongmin/markdown2ctags/releases{/id}","created_at":"2016-01-07T13:05:20Z","updated_at":"2016-01-07T13:05:21Z","pushed_at":"2016-01-07T14:44:34Z","git_url":"git://github.com/lisongmin/markdown2ctags.git","ssh_url":"git@github.com:lisongmin/markdown2ctags.git","clone_url":"https://github.com/lisongmin/markdown2ctags.git","svn_url":"https://github.com/lisongmin/markdown2ctags","homepage":null,"size":9,"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":"jszakmeister:master","ref":"master","sha":"1520b080699deb8651c110be1204bb5183489fe9","user":{"login":"jszakmeister","id":448087,"avatar_url":"https://avatars.githubusercontent.com/u/448087?v=3","gravatar_id":"","url":"https://api.github.com/users/jszakmeister","html_url":"https://github.com/jszakmeister","followers_url":"https://api.github.com/users/jszakmeister/followers","following_url":"https://api.github.com/users/jszakmeister/following{/other_user}","gists_url":"https://api.github.com/users/jszakmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/jszakmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jszakmeister/subscriptions","organizations_url":"https://api.github.com/users/jszakmeister/orgs","repos_url":"https://api.github.com/users/jszakmeister/repos","events_url":"https://api.github.com/users/jszakmeister/events{/privacy}","received_events_url":"https://api.github.com/users/jszakmeister/received_events","type":"User","site_admin":false},"repo":{"id":14743297,"name":"markdown2ctags","full_name":"jszakmeister/markdown2ctags","owner":{"login":"jszakmeister","id":448087,"avatar_url":"https://avatars.githubusercontent.com/u/448087?v=3","gravatar_id":"","url":"https://api.github.com/users/jszakmeister","html_url":"https://github.com/jszakmeister","followers_url":"https://api.github.com/users/jszakmeister/followers","following_url":"https://api.github.com/users/jszakmeister/following{/other_user}","gists_url":"https://api.github.com/users/jszakmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/jszakmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jszakmeister/subscriptions","organizations_url":"https://api.github.com/users/jszakmeister/orgs","repos_url":"https://api.github.com/users/jszakmeister/repos","events_url":"https://api.github.com/users/jszakmeister/events{/privacy}","received_events_url":"https://api.github.com/users/jszakmeister/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jszakmeister/markdown2ctags","description":"Generate ctags-compatible tags files for Markdown documents.","fork":false,"url":"https://api.github.com/repos/jszakmeister/markdown2ctags","forks_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/forks","keys_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/teams","hooks_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/hooks","issue_events_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/issues/events{/number}","events_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/events","assignees_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/assignees{/user}","branches_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/branches{/branch}","tags_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/tags","blobs_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/git/refs{/sha}","trees_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/statuses/{sha}","languages_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/languages","stargazers_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/stargazers","contributors_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/contributors","subscribers_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/subscribers","subscription_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/subscription","commits_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/commits{/sha}","git_commits_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/git/commits{/sha}","comments_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/comments{/number}","issue_comment_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/issues/comments{/number}","contents_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/contents/{+path}","compare_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/merges","archive_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/downloads","issues_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/issues{/number}","pulls_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls{/number}","milestones_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/milestones{/number}","notifications_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/labels{/name}","releases_url":"https://api.github.com/repos/jszakmeister/markdown2ctags/releases{/id}","created_at":"2013-11-27T09:57:17Z","updated_at":"2016-01-07T13:03:49Z","pushed_at":"2016-01-07T14:56:01Z","git_url":"git://github.com/jszakmeister/markdown2ctags.git","ssh_url":"git@github.com:jszakmeister/markdown2ctags.git","clone_url":"https://github.com/jszakmeister/markdown2ctags.git","svn_url":"https://github.com/jszakmeister/markdown2ctags","homepage":null,"size":165,"stargazers_count":26,"watchers_count":26,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":3,"forks":6,"open_issues":3,"watchers":26,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5"},"html":{"href":"https://github.com/jszakmeister/markdown2ctags/pull/5"},"issue":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/issues/5"},"comments":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/jszakmeister/markdown2ctags/statuses/85783a0e82f5b297790210d143bcab18828aa072"}}}}