From 2e2b8af9fdf05deb1f13f4a3005eb15233d6880d Mon Sep 17 00:00:00 2001 From: Sidhant Bhavnani Date: Fri, 2 Dec 2016 16:18:11 +0000 Subject: [PATCH] pep8: Fix E303 violations. --- bin/zulip-send | 1 - integrations/basecamp/zulip_basecamp_config.py | 1 - integrations/codebase/zulip_codebase_config.py | 1 - integrations/codebase/zulip_codebase_mirror | 2 -- integrations/perforce/git_p4.py | 5 ----- 5 files changed, 10 deletions(-) diff --git a/bin/zulip-send b/bin/zulip-send index 9777848..16815dc 100755 --- a/bin/zulip-send +++ b/bin/zulip-send @@ -89,7 +89,6 @@ def main(argv=None): help='Allows the user to specify a subject for the message.') parser.add_option_group(group) - (options, recipients) = parser.parse_args(argv[1:]) if options.verbose: diff --git a/integrations/basecamp/zulip_basecamp_config.py b/integrations/basecamp/zulip_basecamp_config.py index 76ebda9..5c2ef1f 100644 --- a/integrations/basecamp/zulip_basecamp_config.py +++ b/integrations/basecamp/zulip_basecamp_config.py @@ -21,7 +21,6 @@ # THE SOFTWARE. - # Change these values to configure authentication for basecamp account BASECAMP_ACCOUNT_ID = "12345678" BASECAMP_USERNAME = "foo@example.com" diff --git a/integrations/codebase/zulip_codebase_config.py b/integrations/codebase/zulip_codebase_config.py index a2b94b5..ccad0fc 100644 --- a/integrations/codebase/zulip_codebase_config.py +++ b/integrations/codebase/zulip_codebase_config.py @@ -21,7 +21,6 @@ # THE SOFTWARE. - # Change these values to configure authentication for your codebase account # Note that this is the Codebase API Username, found in the Settings page # for your account diff --git a/integrations/codebase/zulip_codebase_mirror b/integrations/codebase/zulip_codebase_mirror index 9cfa24d..2f42d39 100755 --- a/integrations/codebase/zulip_codebase_mirror +++ b/integrations/codebase/zulip_codebase_mirror @@ -116,7 +116,6 @@ def handle_event(event): url = make_url("projects/%s" % (project_link,)) scm = "of type %s" % (project_repo_type,) if project_repo_type else "" - subject = "Repository %s Created" % (project_name,) content = "%s created a new repository %s [%s](%s)" % (actor_name, scm, project_name, url) elif event_type == 'push': @@ -165,7 +164,6 @@ def handle_event(event): body = raw_props.get('content') changes = raw_props.get('changes') - url = make_url("projects/%s/tickets/%s" % (project_link, num)) subject = "#%s: %s" % (num, name) diff --git a/integrations/perforce/git_p4.py b/integrations/perforce/git_p4.py index bbcd80c..eb5bbea 100755 --- a/integrations/perforce/git_p4.py +++ b/integrations/perforce/git_p4.py @@ -873,7 +873,6 @@ class P4UserMap(object): self.users[output["User"]] = output["FullName"] + " <" + output["Email"] + ">" self.emails[output["Email"]] = output["User"] - s = '' for (key, val) in self.users.items(): s += "%s\t%s\n" % (key.expandtabs(1), val.expandtabs(1)) @@ -959,7 +958,6 @@ class P4RollBack(Command): log = extractLogMessageFromGitCommit(ref) settings = extractSettingsGitLog(log) - depotPaths = settings['depot-paths'] change = settings['change'] @@ -2480,7 +2478,6 @@ class P4Sync(Command, P4UserMap): if source not in self.knownBranches: lostAndFoundBranches.add(source) - for branch in lostAndFoundBranches: self.knownBranches[branch] = branch @@ -2698,7 +2695,6 @@ class P4Sync(Command, P4UserMap): sys.stderr.write("p4 exitcode: %s\n" % info['p4ExitCode']) sys.exit(1) - change = int(info["change"]) if change > newestRevision: newestRevision = change @@ -2727,7 +2723,6 @@ class P4Sync(Command, P4UserMap): print("IO error with git fast-import. Is your git version recent enough?") print(self.gitError.read()) - def run(self, args): self.depotPaths = [] self.changeRange = ""