git-p4: remove spaces around default arguments

PEP8 recommends that there should be no spaces around the = sign of default argument values of functions. This guideline is described here: 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:24 UTC 57fe2ce0e1a2cb7bd355b97230a9aa42be7da044
1 file changed +6 -6
git-p4.py
+6 -6
@@ -1040,7 +1040,7 @@ def branch_exists(branch):
1040 return out.rstrip() == branch
1041
1042
1043 -def findUpstreamBranchPoint(head = "HEAD"):
1043 +def findUpstreamBranchPoint(head="HEAD"):
1044 branches = p4BranchesInGit()
1045 # map from depot-path to branch name
1046 branchByDepotPath = {}
@@ -1068,7 +1068,7 @@ def findUpstreamBranchPoint(head = "HEAD"):
1068 return ["", settings]
1069
1070
1071 -def createOrUpdateBranchesFromOrigin(localRefPrefix = "refs/remotes/p4/", silent=True):
1071 +def createOrUpdateBranchesFromOrigin(localRefPrefix="refs/remotes/p4/", silent=True):
1072 if not silent:
1073 print("Creating/updating branch(es) in %s based on origin branch(es)"
1074 % localRefPrefix)
@@ -2838,7 +2838,7 @@ class P4Sync(Command, P4UserMap):
2838 return True
2839 return False
2840
2841 - def extractFilesFromCommit(self, commit, shelved=False, shelved_cl = 0):
2841 + def extractFilesFromCommit(self, commit, shelved=False, shelved_cl=0):
2842 files = []
2843 fnum = 0
2844 while "depotFile%s" % fnum in commit:
@@ -3269,7 +3269,7 @@ class P4Sync(Command, P4UserMap):
3269 'rev': record['headRev'],
3270 'type': record['headType']})
3271
3272 - def commit(self, details, files, branch, parent = "", allow_empty=False):
3272 + def commit(self, details, files, branch, parent="", allow_empty=False):
3273 epoch = details["time"]
3274 author = details["user"]
3275 jobs = self.extractJobsFromCommit(details)
@@ -4415,8 +4415,8 @@ def main():
4415
4416 parser = optparse.OptionParser(cmd.usage.replace("%prog", "%prog " + cmdName),
4417 options,
4418 - description = cmd.description,
4419 - formatter = HelpFormatter())
4418 + description=cmd.description,
4419 + formatter=HelpFormatter())
4420
4421 try:
4422 (cmd, args) = parser.parse_args(sys.argv[2:], cmd)