From: Joel Holdsworth Date: Wed, 12 Jan 2022 13:46:33 GMT Subject: [PATCH 18/20] git-p4: only seperate code blocks by a single empty line Message-ID: <20220112134635.177877-19-jholdsworth@nvidia.com> In-Reply-To: <20220112134635.177877-1-jholdsworth@nvidia.com> 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 --- git-p4.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/git-p4.py b/git-p4.py index 2a3409ebd2..58f11ee41c 100755 --- a/git-p4.py +++ b/git-p4.py @@ -3593,7 +3593,6 @@ def getBranchMapping(self): if source not in self.knownBranches: lostAndFoundBranches.add(source) - for branch in lostAndFoundBranches: self.knownBranches[branch] = branch @@ -3816,7 +3815,6 @@ def importHeadRevision(self, revision): sys.stderr.write("p4 exitcode: %s\n" % info['p4ExitCode']) sys.exit(1) - change = int(info["change"]) if change > newestRevision: newestRevision = change -- 2.34.1