pep8: Fix E303 violations.
This commit is contained in:
parent
6eb6016913
commit
2e2b8af9fd
|
@ -89,7 +89,6 @@ def main(argv=None):
|
||||||
help='Allows the user to specify a subject for the message.')
|
help='Allows the user to specify a subject for the message.')
|
||||||
parser.add_option_group(group)
|
parser.add_option_group(group)
|
||||||
|
|
||||||
|
|
||||||
(options, recipients) = parser.parse_args(argv[1:])
|
(options, recipients) = parser.parse_args(argv[1:])
|
||||||
|
|
||||||
if options.verbose:
|
if options.verbose:
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Change these values to configure authentication for basecamp account
|
# Change these values to configure authentication for basecamp account
|
||||||
BASECAMP_ACCOUNT_ID = "12345678"
|
BASECAMP_ACCOUNT_ID = "12345678"
|
||||||
BASECAMP_USERNAME = "foo@example.com"
|
BASECAMP_USERNAME = "foo@example.com"
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Change these values to configure authentication for your codebase account
|
# Change these values to configure authentication for your codebase account
|
||||||
# Note that this is the Codebase API Username, found in the Settings page
|
# Note that this is the Codebase API Username, found in the Settings page
|
||||||
# for your account
|
# for your account
|
||||||
|
|
|
@ -116,7 +116,6 @@ def handle_event(event):
|
||||||
url = make_url("projects/%s" % (project_link,))
|
url = make_url("projects/%s" % (project_link,))
|
||||||
scm = "of type %s" % (project_repo_type,) if project_repo_type else ""
|
scm = "of type %s" % (project_repo_type,) if project_repo_type else ""
|
||||||
|
|
||||||
|
|
||||||
subject = "Repository %s Created" % (project_name,)
|
subject = "Repository %s Created" % (project_name,)
|
||||||
content = "%s created a new repository %s [%s](%s)" % (actor_name, scm, project_name, url)
|
content = "%s created a new repository %s [%s](%s)" % (actor_name, scm, project_name, url)
|
||||||
elif event_type == 'push':
|
elif event_type == 'push':
|
||||||
|
@ -165,7 +164,6 @@ def handle_event(event):
|
||||||
body = raw_props.get('content')
|
body = raw_props.get('content')
|
||||||
changes = raw_props.get('changes')
|
changes = raw_props.get('changes')
|
||||||
|
|
||||||
|
|
||||||
url = make_url("projects/%s/tickets/%s" % (project_link, num))
|
url = make_url("projects/%s/tickets/%s" % (project_link, num))
|
||||||
subject = "#%s: %s" % (num, name)
|
subject = "#%s: %s" % (num, name)
|
||||||
|
|
||||||
|
|
|
@ -873,7 +873,6 @@ class P4UserMap(object):
|
||||||
self.users[output["User"]] = output["FullName"] + " <" + output["Email"] + ">"
|
self.users[output["User"]] = output["FullName"] + " <" + output["Email"] + ">"
|
||||||
self.emails[output["Email"]] = output["User"]
|
self.emails[output["Email"]] = output["User"]
|
||||||
|
|
||||||
|
|
||||||
s = ''
|
s = ''
|
||||||
for (key, val) in self.users.items():
|
for (key, val) in self.users.items():
|
||||||
s += "%s\t%s\n" % (key.expandtabs(1), val.expandtabs(1))
|
s += "%s\t%s\n" % (key.expandtabs(1), val.expandtabs(1))
|
||||||
|
@ -959,7 +958,6 @@ class P4RollBack(Command):
|
||||||
log = extractLogMessageFromGitCommit(ref)
|
log = extractLogMessageFromGitCommit(ref)
|
||||||
settings = extractSettingsGitLog(log)
|
settings = extractSettingsGitLog(log)
|
||||||
|
|
||||||
|
|
||||||
depotPaths = settings['depot-paths']
|
depotPaths = settings['depot-paths']
|
||||||
change = settings['change']
|
change = settings['change']
|
||||||
|
|
||||||
|
@ -2480,7 +2478,6 @@ class P4Sync(Command, P4UserMap):
|
||||||
if source not in self.knownBranches:
|
if source not in self.knownBranches:
|
||||||
lostAndFoundBranches.add(source)
|
lostAndFoundBranches.add(source)
|
||||||
|
|
||||||
|
|
||||||
for branch in lostAndFoundBranches:
|
for branch in lostAndFoundBranches:
|
||||||
self.knownBranches[branch] = branch
|
self.knownBranches[branch] = branch
|
||||||
|
|
||||||
|
@ -2698,7 +2695,6 @@ class P4Sync(Command, P4UserMap):
|
||||||
sys.stderr.write("p4 exitcode: %s\n" % info['p4ExitCode'])
|
sys.stderr.write("p4 exitcode: %s\n" % info['p4ExitCode'])
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
change = int(info["change"])
|
change = int(info["change"])
|
||||||
if change > newestRevision:
|
if change > newestRevision:
|
||||||
newestRevision = change
|
newestRevision = change
|
||||||
|
@ -2727,7 +2723,6 @@ class P4Sync(Command, P4UserMap):
|
||||||
print("IO error with git fast-import. Is your git version recent enough?")
|
print("IO error with git fast-import. Is your git version recent enough?")
|
||||||
print(self.gitError.read())
|
print(self.gitError.read())
|
||||||
|
|
||||||
|
|
||||||
def run(self, args):
|
def run(self, args):
|
||||||
self.depotPaths = []
|
self.depotPaths = []
|
||||||
self.changeRange = ""
|
self.changeRange = ""
|
||||||
|
|
Loading…
Reference in a new issue