git-p4: only seperate code blocks by a single empty line
PEP8 recommends that blank lines should be used sparingly to separate sections in the "Blank Lines" section: https://www.python.org/dev/peps/pep-0008/#blank-lines This patch replaces all double blank-line separations with a single blank line. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Joel Holdsworth committed
Apr 1, 2022 at 15:25 UTC
77956b9de5266de6e597509a4d58e2f0bcafd09a
1 file changed
-3
git-p4.py
-3
@@ -3521,7 +3521,6 @@ class P4Sync(Command, P4UserMap):
3521
if source not in self.knownBranches:
3522
lostAndFoundBranches.add(source)
3523
3524
-
3524
for branch in lostAndFoundBranches:
3525
self.knownBranches[branch] = branch
3526
@@ -3745,7 +3744,6 @@ class P4Sync(Command, P4UserMap):
3744
sys.stderr.write("p4 exitcode: %s\n" % info['p4ExitCode'])
3745
sys.exit(1)
3746
3748
-
3747
change = int(info["change"])
3748
if change > newestRevision:
3749
newestRevision = change
@@ -3773,7 +3771,6 @@ class P4Sync(Command, P4UserMap):
3771
print("IO error details: {}".format(err))
3772
print(self.gitError.read())
3773
3776
-
3774
def importRevisions(self, args, branch_arg_given):
3775
changes = []
3776