{"action":"created","comment":{"url":"https://api.github.com/repos/alok1974/transposelib/pulls/comments/79307354","id":79307354,"diff_hunk":"@@ -51,52 +51,13 @@ def validate_file_path(file_path, file_extension=None, check_existence=False):\n \r\n \r\n def view_file(file_path=None):\r\n-    '''\r\n+    \"\"\"\r\n     Open up the file path in default browser.\r\n-    '''\r\n+    \"\"\"\r\n     if not validate_file_path(file_path=file_path, check_existence=True):\r\n         return\r\n \r\n     try:\r\n         webbrowser.open(\"file://\" + file_path)\r\n     except Exception, e:\r\n         io.warn(\"Cannot start file because {0}.  File Path : {1}\".format(e, file_path))\r\n-\r\n-\r\n-class io(object):\r\n-    '''\r\n-    Simple Class for echoing the output with different color.\r\n-\r\n-    This class have following methods which will echo messages in terminal in their respective colors\r\n-\r\n-        io.warn(message)  :   \"YELLOW\" Color        (For any warning)\r\n-        io.info(message)  :   \"GREEN\" Color         (For any success)\r\n-        io.error(message) :   \"RED\" Color           (For any critical error)\r\n-        io.echo(message)  :   \"DEFAULT\" Color       (Normal message)\r\n-\r\n-    '''\r\n-\r\n-    GREEN = '\\033[92m'\r\n-    YELLOW = '\\033[93m'\r\n-    RED = '\\033[91m'\r\n-    RESET = '\\033[0m'\r\n-\r\n-    @classmethod\r\n-    def warn(cls, message):\r\n-        string = cls.YELLOW + \"WARNING : \" + str(message) + cls.RESET\r","path":"scripts/common.py","position":83,"original_position":83,"commit_id":"b59baad7a1e0430901ca1005c33caed800af8927","original_commit_id":"b59baad7a1e0430901ca1005c33caed800af8927","user":{"login":"alok1974","id":1430306,"avatar_url":"https://avatars.githubusercontent.com/u/1430306?v=3","gravatar_id":"","url":"https://api.github.com/users/alok1974","html_url":"https://github.com/alok1974","followers_url":"https://api.github.com/users/alok1974/followers","following_url":"https://api.github.com/users/alok1974/following{/other_user}","gists_url":"https://api.github.com/users/alok1974/gists{/gist_id}","starred_url":"https://api.github.com/users/alok1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alok1974/subscriptions","organizations_url":"https://api.github.com/users/alok1974/orgs","repos_url":"https://api.github.com/users/alok1974/repos","events_url":"https://api.github.com/users/alok1974/events{/privacy}","received_events_url":"https://api.github.com/users/alok1974/received_events","type":"User","site_admin":false},"body":"`+` is not recommend for string concatenation, as it has a huge performance overhead. Also use `format()` when formatting strings. Also, refrain from using `string` as a variable name, choose a more meaningful name.","created_at":"2016-09-18T14:44:05Z","updated_at":"2016-09-18T14:44:05Z","html_url":"https://github.com/alok1974/transposelib/pull/1#discussion_r79307354","pull_request_url":"https://api.github.com/repos/alok1974/transposelib/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/alok1974/transposelib/pulls/comments/79307354"},"html":{"href":"https://github.com/alok1974/transposelib/pull/1#discussion_r79307354"},"pull_request":{"href":"https://api.github.com/repos/alok1974/transposelib/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/alok1974/transposelib/pulls/1","id":85711786,"html_url":"https://github.com/alok1974/transposelib/pull/1","diff_url":"https://github.com/alok1974/transposelib/pull/1.diff","patch_url":"https://github.com/alok1974/transposelib/pull/1.patch","issue_url":"https://api.github.com/repos/alok1974/transposelib/issues/1","number":1,"state":"open","locked":false,"title":"Updated for PEP-8 compliance.","user":{"login":"alok1974","id":1430306,"avatar_url":"https://avatars.githubusercontent.com/u/1430306?v=3","gravatar_id":"","url":"https://api.github.com/users/alok1974","html_url":"https://github.com/alok1974","followers_url":"https://api.github.com/users/alok1974/followers","following_url":"https://api.github.com/users/alok1974/following{/other_user}","gists_url":"https://api.github.com/users/alok1974/gists{/gist_id}","starred_url":"https://api.github.com/users/alok1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alok1974/subscriptions","organizations_url":"https://api.github.com/users/alok1974/orgs","repos_url":"https://api.github.com/users/alok1974/repos","events_url":"https://api.github.com/users/alok1974/events{/privacy}","received_events_url":"https://api.github.com/users/alok1974/received_events","type":"User","site_admin":false},"body":"Just some basic PEP-8 stuff.","created_at":"2016-09-18T14:29:19Z","updated_at":"2016-09-18T14:44:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1089fe86f384fc21a5edca98f9caa5ffd2f5ca94","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/alok1974/transposelib/pulls/1/commits","review_comments_url":"https://api.github.com/repos/alok1974/transposelib/pulls/1/comments","review_comment_url":"https://api.github.com/repos/alok1974/transposelib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alok1974/transposelib/issues/1/comments","statuses_url":"https://api.github.com/repos/alok1974/transposelib/statuses/b59baad7a1e0430901ca1005c33caed800af8927","head":{"label":"alok1974:alokreview","ref":"alokreview","sha":"b59baad7a1e0430901ca1005c33caed800af8927","user":{"login":"alok1974","id":1430306,"avatar_url":"https://avatars.githubusercontent.com/u/1430306?v=3","gravatar_id":"","url":"https://api.github.com/users/alok1974","html_url":"https://github.com/alok1974","followers_url":"https://api.github.com/users/alok1974/followers","following_url":"https://api.github.com/users/alok1974/following{/other_user}","gists_url":"https://api.github.com/users/alok1974/gists{/gist_id}","starred_url":"https://api.github.com/users/alok1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alok1974/subscriptions","organizations_url":"https://api.github.com/users/alok1974/orgs","repos_url":"https://api.github.com/users/alok1974/repos","events_url":"https://api.github.com/users/alok1974/events{/privacy}","received_events_url":"https://api.github.com/users/alok1974/received_events","type":"User","site_admin":false},"repo":{"id":68522261,"name":"transposelib","full_name":"alok1974/transposelib","owner":{"login":"alok1974","id":1430306,"avatar_url":"https://avatars.githubusercontent.com/u/1430306?v=3","gravatar_id":"","url":"https://api.github.com/users/alok1974","html_url":"https://github.com/alok1974","followers_url":"https://api.github.com/users/alok1974/followers","following_url":"https://api.github.com/users/alok1974/following{/other_user}","gists_url":"https://api.github.com/users/alok1974/gists{/gist_id}","starred_url":"https://api.github.com/users/alok1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alok1974/subscriptions","organizations_url":"https://api.github.com/users/alok1974/orgs","repos_url":"https://api.github.com/users/alok1974/repos","events_url":"https://api.github.com/users/alok1974/events{/privacy}","received_events_url":"https://api.github.com/users/alok1974/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alok1974/transposelib","description":null,"fork":false,"url":"https://api.github.com/repos/alok1974/transposelib","forks_url":"https://api.github.com/repos/alok1974/transposelib/forks","keys_url":"https://api.github.com/repos/alok1974/transposelib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alok1974/transposelib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alok1974/transposelib/teams","hooks_url":"https://api.github.com/repos/alok1974/transposelib/hooks","issue_events_url":"https://api.github.com/repos/alok1974/transposelib/issues/events{/number}","events_url":"https://api.github.com/repos/alok1974/transposelib/events","assignees_url":"https://api.github.com/repos/alok1974/transposelib/assignees{/user}","branches_url":"https://api.github.com/repos/alok1974/transposelib/branches{/branch}","tags_url":"https://api.github.com/repos/alok1974/transposelib/tags","blobs_url":"https://api.github.com/repos/alok1974/transposelib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alok1974/transposelib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alok1974/transposelib/git/refs{/sha}","trees_url":"https://api.github.com/repos/alok1974/transposelib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alok1974/transposelib/statuses/{sha}","languages_url":"https://api.github.com/repos/alok1974/transposelib/languages","stargazers_url":"https://api.github.com/repos/alok1974/transposelib/stargazers","contributors_url":"https://api.github.com/repos/alok1974/transposelib/contributors","subscribers_url":"https://api.github.com/repos/alok1974/transposelib/subscribers","subscription_url":"https://api.github.com/repos/alok1974/transposelib/subscription","commits_url":"https://api.github.com/repos/alok1974/transposelib/commits{/sha}","git_commits_url":"https://api.github.com/repos/alok1974/transposelib/git/commits{/sha}","comments_url":"https://api.github.com/repos/alok1974/transposelib/comments{/number}","issue_comment_url":"https://api.github.com/repos/alok1974/transposelib/issues/comments{/number}","contents_url":"https://api.github.com/repos/alok1974/transposelib/contents/{+path}","compare_url":"https://api.github.com/repos/alok1974/transposelib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alok1974/transposelib/merges","archive_url":"https://api.github.com/repos/alok1974/transposelib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alok1974/transposelib/downloads","issues_url":"https://api.github.com/repos/alok1974/transposelib/issues{/number}","pulls_url":"https://api.github.com/repos/alok1974/transposelib/pulls{/number}","milestones_url":"https://api.github.com/repos/alok1974/transposelib/milestones{/number}","notifications_url":"https://api.github.com/repos/alok1974/transposelib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alok1974/transposelib/labels{/name}","releases_url":"https://api.github.com/repos/alok1974/transposelib/releases{/id}","deployments_url":"https://api.github.com/repos/alok1974/transposelib/deployments","created_at":"2016-09-18T13:09:08Z","updated_at":"2016-09-18T13:14:45Z","pushed_at":"2016-09-18T14:36:46Z","git_url":"git://github.com/alok1974/transposelib.git","ssh_url":"git@github.com:alok1974/transposelib.git","clone_url":"https://github.com/alok1974/transposelib.git","svn_url":"https://github.com/alok1974/transposelib","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alok1974:master","ref":"master","sha":"8e6db6731ee749ebec68c125573936bd16809810","user":{"login":"alok1974","id":1430306,"avatar_url":"https://avatars.githubusercontent.com/u/1430306?v=3","gravatar_id":"","url":"https://api.github.com/users/alok1974","html_url":"https://github.com/alok1974","followers_url":"https://api.github.com/users/alok1974/followers","following_url":"https://api.github.com/users/alok1974/following{/other_user}","gists_url":"https://api.github.com/users/alok1974/gists{/gist_id}","starred_url":"https://api.github.com/users/alok1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alok1974/subscriptions","organizations_url":"https://api.github.com/users/alok1974/orgs","repos_url":"https://api.github.com/users/alok1974/repos","events_url":"https://api.github.com/users/alok1974/events{/privacy}","received_events_url":"https://api.github.com/users/alok1974/received_events","type":"User","site_admin":false},"repo":{"id":68522261,"name":"transposelib","full_name":"alok1974/transposelib","owner":{"login":"alok1974","id":1430306,"avatar_url":"https://avatars.githubusercontent.com/u/1430306?v=3","gravatar_id":"","url":"https://api.github.com/users/alok1974","html_url":"https://github.com/alok1974","followers_url":"https://api.github.com/users/alok1974/followers","following_url":"https://api.github.com/users/alok1974/following{/other_user}","gists_url":"https://api.github.com/users/alok1974/gists{/gist_id}","starred_url":"https://api.github.com/users/alok1974/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alok1974/subscriptions","organizations_url":"https://api.github.com/users/alok1974/orgs","repos_url":"https://api.github.com/users/alok1974/repos","events_url":"https://api.github.com/users/alok1974/events{/privacy}","received_events_url":"https://api.github.com/users/alok1974/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alok1974/transposelib","description":null,"fork":false,"url":"https://api.github.com/repos/alok1974/transposelib","forks_url":"https://api.github.com/repos/alok1974/transposelib/forks","keys_url":"https://api.github.com/repos/alok1974/transposelib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alok1974/transposelib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alok1974/transposelib/teams","hooks_url":"https://api.github.com/repos/alok1974/transposelib/hooks","issue_events_url":"https://api.github.com/repos/alok1974/transposelib/issues/events{/number}","events_url":"https://api.github.com/repos/alok1974/transposelib/events","assignees_url":"https://api.github.com/repos/alok1974/transposelib/assignees{/user}","branches_url":"https://api.github.com/repos/alok1974/transposelib/branches{/branch}","tags_url":"https://api.github.com/repos/alok1974/transposelib/tags","blobs_url":"https://api.github.com/repos/alok1974/transposelib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alok1974/transposelib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alok1974/transposelib/git/refs{/sha}","trees_url":"https://api.github.com/repos/alok1974/transposelib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alok1974/transposelib/statuses/{sha}","languages_url":"https://api.github.com/repos/alok1974/transposelib/languages","stargazers_url":"https://api.github.com/repos/alok1974/transposelib/stargazers","contributors_url":"https://api.github.com/repos/alok1974/transposelib/contributors","subscribers_url":"https://api.github.com/repos/alok1974/transposelib/subscribers","subscription_url":"https://api.github.com/repos/alok1974/transposelib/subscription","commits_url":"https://api.github.com/repos/alok1974/transposelib/commits{/sha}","git_commits_url":"https://api.github.com/repos/alok1974/transposelib/git/commits{/sha}","comments_url":"https://api.github.com/repos/alok1974/transposelib/comments{/number}","issue_comment_url":"https://api.github.com/repos/alok1974/transposelib/issues/comments{/number}","contents_url":"https://api.github.com/repos/alok1974/transposelib/contents/{+path}","compare_url":"https://api.github.com/repos/alok1974/transposelib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alok1974/transposelib/merges","archive_url":"https://api.github.com/repos/alok1974/transposelib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alok1974/transposelib/downloads","issues_url":"https://api.github.com/repos/alok1974/transposelib/issues{/number}","pulls_url":"https://api.github.com/repos/alok1974/transposelib/pulls{/number}","milestones_url":"https://api.github.com/repos/alok1974/transposelib/milestones{/number}","notifications_url":"https://api.github.com/repos/alok1974/transposelib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alok1974/transposelib/labels{/name}","releases_url":"https://api.github.com/repos/alok1974/transposelib/releases{/id}","deployments_url":"https://api.github.com/repos/alok1974/transposelib/deployments","created_at":"2016-09-18T13:09:08Z","updated_at":"2016-09-18T13:14:45Z","pushed_at":"2016-09-18T14:36:46Z","git_url":"git://github.com/alok1974/transposelib.git","ssh_url":"git@github.com:alok1974/transposelib.git","clone_url":"https://github.com/alok1974/transposelib.git","svn_url":"https://github.com/alok1974/transposelib","homepage":null,"size":11,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alok1974/transposelib/pulls/1"},"html":{"href":"https://github.com/alok1974/transposelib/pull/1"},"issue":{"href":"https://api.github.com/repos/alok1974/transposelib/issues/1"},"comments":{"href":"https://api.github.com/repos/alok1974/transposelib/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/alok1974/transposelib/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/alok1974/transposelib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alok1974/transposelib/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/alok1974/transposelib/statuses/b59baad7a1e0430901ca1005c33caed800af8927"}}}}
{"actor":{"display_login":"alok1974"}}