{"action":"created","comment":{"url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/comments/36748784","id":36748784,"diff_hunk":"@@ -11,22 +11,15 @@\n import argparse\n \n # python-stix\n-from stix import utils\n-from stix.indicator import Indicator\n-from stix.core import STIXPackage, STIXHeader\n-from stix.common import InformationSource\n-from stix.common.vocabs import PackageIntent\n-\n-# python-cybox\n-from cybox.core import Observables\n-from cybox.common import ToolInformationList, ToolInformation\n-\n-# internal\n+from openioc2stix import translate","path":"openioc-to-stix.py","position":21,"original_position":21,"commit_id":"769fd8d2b339f7acd7dba7051bb22b5d969e6155","original_commit_id":"769fd8d2b339f7acd7dba7051bb22b5d969e6155","user":{"login":"bworrell","id":2118633,"avatar_url":"https://avatars.githubusercontent.com/u/2118633?v=3","gravatar_id":"","url":"https://api.github.com/users/bworrell","html_url":"https://github.com/bworrell","followers_url":"https://api.github.com/users/bworrell/followers","following_url":"https://api.github.com/users/bworrell/following{/other_user}","gists_url":"https://api.github.com/users/bworrell/gists{/gist_id}","starred_url":"https://api.github.com/users/bworrell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bworrell/subscriptions","organizations_url":"https://api.github.com/users/bworrell/orgs","repos_url":"https://api.github.com/users/bworrell/repos","events_url":"https://api.github.com/users/bworrell/events{/privacy}","received_events_url":"https://api.github.com/users/bworrell/received_events","type":"User","site_admin":false},"body":"Let's order the imports in the way recommended by [pep8](https://www.python.org/dev/peps/pep-0008/#imports), so  we'd end up with something like:\r\n\r\n```\r\nimport argparse \r\n\r\nimport stix.utils\r\n\r\nfrom openioc2stix import translate\r\nfrom openioc2stix.version import __Version__\r\n","created_at":"2015-08-11T14:12:22Z","updated_at":"2015-08-11T14:12:22Z","html_url":"https://github.com/STIXProject/openioc-to-stix/pull/9#discussion_r36748784","pull_request_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/comments/36748784"},"html":{"href":"https://github.com/STIXProject/openioc-to-stix/pull/9#discussion_r36748784"},"pull_request":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9","id":41565121,"html_url":"https://github.com/STIXProject/openioc-to-stix/pull/9","diff_url":"https://github.com/STIXProject/openioc-to-stix/pull/9.diff","patch_url":"https://github.com/STIXProject/openioc-to-stix/pull/9.patch","issue_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/9","number":9,"state":"open","locked":false,"title":"STIX translate.py added","user":{"login":"Bojak4616","id":9453676,"avatar_url":"https://avatars.githubusercontent.com/u/9453676?v=3","gravatar_id":"","url":"https://api.github.com/users/Bojak4616","html_url":"https://github.com/Bojak4616","followers_url":"https://api.github.com/users/Bojak4616/followers","following_url":"https://api.github.com/users/Bojak4616/following{/other_user}","gists_url":"https://api.github.com/users/Bojak4616/gists{/gist_id}","starred_url":"https://api.github.com/users/Bojak4616/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bojak4616/subscriptions","organizations_url":"https://api.github.com/users/Bojak4616/orgs","repos_url":"https://api.github.com/users/Bojak4616/repos","events_url":"https://api.github.com/users/Bojak4616/events{/privacy}","received_events_url":"https://api.github.com/users/Bojak4616/received_events","type":"User","site_admin":false},"body":"Added STIX conversion functionality to translate.py\r\nSetup.py required libs changed","created_at":"2015-08-04T12:42:34Z","updated_at":"2015-08-11T14:12:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b65114d5b38e41a616056e1296d8696848a7aece","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9/commits","review_comments_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9/comments","review_comment_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/9/comments","statuses_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/statuses/769fd8d2b339f7acd7dba7051bb22b5d969e6155","head":{"label":"STIXProject:stix-translate","ref":"stix-translate","sha":"769fd8d2b339f7acd7dba7051bb22b5d969e6155","user":{"login":"STIXProject","id":2774079,"avatar_url":"https://avatars.githubusercontent.com/u/2774079?v=3","gravatar_id":"","url":"https://api.github.com/users/STIXProject","html_url":"https://github.com/STIXProject","followers_url":"https://api.github.com/users/STIXProject/followers","following_url":"https://api.github.com/users/STIXProject/following{/other_user}","gists_url":"https://api.github.com/users/STIXProject/gists{/gist_id}","starred_url":"https://api.github.com/users/STIXProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STIXProject/subscriptions","organizations_url":"https://api.github.com/users/STIXProject/orgs","repos_url":"https://api.github.com/users/STIXProject/repos","events_url":"https://api.github.com/users/STIXProject/events{/privacy}","received_events_url":"https://api.github.com/users/STIXProject/received_events","type":"Organization","site_admin":false},"repo":{"id":14406485,"name":"openioc-to-stix","full_name":"STIXProject/openioc-to-stix","owner":{"login":"STIXProject","id":2774079,"avatar_url":"https://avatars.githubusercontent.com/u/2774079?v=3","gravatar_id":"","url":"https://api.github.com/users/STIXProject","html_url":"https://github.com/STIXProject","followers_url":"https://api.github.com/users/STIXProject/followers","following_url":"https://api.github.com/users/STIXProject/following{/other_user}","gists_url":"https://api.github.com/users/STIXProject/gists{/gist_id}","starred_url":"https://api.github.com/users/STIXProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STIXProject/subscriptions","organizations_url":"https://api.github.com/users/STIXProject/orgs","repos_url":"https://api.github.com/users/STIXProject/repos","events_url":"https://api.github.com/users/STIXProject/events{/privacy}","received_events_url":"https://api.github.com/users/STIXProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/STIXProject/openioc-to-stix","description":"Generate STIX XML from OpenIOC XML","fork":false,"url":"https://api.github.com/repos/STIXProject/openioc-to-stix","forks_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/forks","keys_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/teams","hooks_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/hooks","issue_events_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/events{/number}","events_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/events","assignees_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/assignees{/user}","branches_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/branches{/branch}","tags_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/tags","blobs_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/refs{/sha}","trees_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/statuses/{sha}","languages_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/languages","stargazers_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/stargazers","contributors_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/contributors","subscribers_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/subscribers","subscription_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/subscription","commits_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/commits{/sha}","git_commits_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/commits{/sha}","comments_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/comments{/number}","issue_comment_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/comments{/number}","contents_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/contents/{+path}","compare_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/merges","archive_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/downloads","issues_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues{/number}","pulls_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls{/number}","milestones_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/milestones{/number}","notifications_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/labels{/name}","releases_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/releases{/id}","created_at":"2013-11-14T20:43:22Z","updated_at":"2015-07-21T02:16:57Z","pushed_at":"2015-08-04T14:48:45Z","git_url":"git://github.com/STIXProject/openioc-to-stix.git","ssh_url":"git@github.com:STIXProject/openioc-to-stix.git","clone_url":"https://github.com/STIXProject/openioc-to-stix.git","svn_url":"https://github.com/STIXProject/openioc-to-stix","homepage":"","size":337,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":27,"default_branch":"master"}},"base":{"label":"STIXProject:stix-1.2","ref":"stix-1.2","sha":"1617f1eb6f981add55bab7bcec40fa4797cca8b1","user":{"login":"STIXProject","id":2774079,"avatar_url":"https://avatars.githubusercontent.com/u/2774079?v=3","gravatar_id":"","url":"https://api.github.com/users/STIXProject","html_url":"https://github.com/STIXProject","followers_url":"https://api.github.com/users/STIXProject/followers","following_url":"https://api.github.com/users/STIXProject/following{/other_user}","gists_url":"https://api.github.com/users/STIXProject/gists{/gist_id}","starred_url":"https://api.github.com/users/STIXProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STIXProject/subscriptions","organizations_url":"https://api.github.com/users/STIXProject/orgs","repos_url":"https://api.github.com/users/STIXProject/repos","events_url":"https://api.github.com/users/STIXProject/events{/privacy}","received_events_url":"https://api.github.com/users/STIXProject/received_events","type":"Organization","site_admin":false},"repo":{"id":14406485,"name":"openioc-to-stix","full_name":"STIXProject/openioc-to-stix","owner":{"login":"STIXProject","id":2774079,"avatar_url":"https://avatars.githubusercontent.com/u/2774079?v=3","gravatar_id":"","url":"https://api.github.com/users/STIXProject","html_url":"https://github.com/STIXProject","followers_url":"https://api.github.com/users/STIXProject/followers","following_url":"https://api.github.com/users/STIXProject/following{/other_user}","gists_url":"https://api.github.com/users/STIXProject/gists{/gist_id}","starred_url":"https://api.github.com/users/STIXProject/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/STIXProject/subscriptions","organizations_url":"https://api.github.com/users/STIXProject/orgs","repos_url":"https://api.github.com/users/STIXProject/repos","events_url":"https://api.github.com/users/STIXProject/events{/privacy}","received_events_url":"https://api.github.com/users/STIXProject/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/STIXProject/openioc-to-stix","description":"Generate STIX XML from OpenIOC XML","fork":false,"url":"https://api.github.com/repos/STIXProject/openioc-to-stix","forks_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/forks","keys_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/teams","hooks_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/hooks","issue_events_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/events{/number}","events_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/events","assignees_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/assignees{/user}","branches_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/branches{/branch}","tags_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/tags","blobs_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/refs{/sha}","trees_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/statuses/{sha}","languages_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/languages","stargazers_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/stargazers","contributors_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/contributors","subscribers_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/subscribers","subscription_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/subscription","commits_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/commits{/sha}","git_commits_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/git/commits{/sha}","comments_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/comments{/number}","issue_comment_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/comments{/number}","contents_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/contents/{+path}","compare_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/merges","archive_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/downloads","issues_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues{/number}","pulls_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls{/number}","milestones_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/milestones{/number}","notifications_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/labels{/name}","releases_url":"https://api.github.com/repos/STIXProject/openioc-to-stix/releases{/id}","created_at":"2013-11-14T20:43:22Z","updated_at":"2015-07-21T02:16:57Z","pushed_at":"2015-08-04T14:48:45Z","git_url":"git://github.com/STIXProject/openioc-to-stix.git","ssh_url":"git@github.com:STIXProject/openioc-to-stix.git","clone_url":"https://github.com/STIXProject/openioc-to-stix.git","svn_url":"https://github.com/STIXProject/openioc-to-stix","homepage":"","size":337,"stargazers_count":27,"watchers_count":27,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":7,"forks":7,"open_issues":7,"watchers":27,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9"},"html":{"href":"https://github.com/STIXProject/openioc-to-stix/pull/9"},"issue":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/9"},"comments":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/STIXProject/openioc-to-stix/statuses/769fd8d2b339f7acd7dba7051bb22b5d969e6155"}}}}