git-p4: seperate multiple statements onto seperate lines

PEP8 discourages the use of compound statements where there are multiple statements on a single line in the "Other Recommendations" section: https://www.python.org/dev/peps/pep-0008/#other-recommendations 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 e8f8b3b2a34fadaa559b25ec734c78ab9ef1228f
1 file changed +5 -2
git-p4.py
+5 -2
@@ -1191,7 +1191,8 @@ def p4ChangesForPaths(depotPaths, changeRange, requestedBlockSize):
1191 else:
1192 block_size = max(2, block_size // 2)
1193
1194 - if verbose: print("block size error, retrying with block size {0}".format(block_size))
1194 + if verbose:
1195 + print("block size error, retrying with block size {0}".format(block_size))
1196 continue
1197 except P4Exception as e:
1198 die('Error retrieving changes description ({0})'.format(e.p4ExitCode))
@@ -1818,7 +1819,9 @@ class P4Submit(Command, P4UserMap):
1819 (changelist, newUser))
1820
1821 c = changes[0]
1821 - if c['User'] == newUser: return # nothing to do
1822 + if c['User'] == newUser:
1823 + # Nothing to do
1824 + return
1825 c['User'] = newUser
1826 # p4 does not understand format version 3 and above
1827 input = marshal.dumps(c, 2)