summaryrefslogtreecommitdiffstats
path: root/subcmds/info.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@google.com>2023-09-29 11:04:49 -0400
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-10-31 16:03:54 +0000
commitb32ccbb66bb16965ecb8b4e266c4e45186636c1b (patch)
tree1c1eda32af709f0cbf822de56f696ccd531ce6de /subcmds/info.py
parentb99272c601bc5f466c3cfc782bb852c2c967ad27 (diff)
downloadgit-repo-b32ccbb66bb16965ecb8b4e266c4e45186636c1b.tar.gz
cleanup: Update codebase to expect Python 3.6
- Bump minimum version to Python 3.6. - Use f-strings in a lot of places. Change-Id: I2aa70197230fcec2eff8e7c8eb754f20c08075bb Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/389034 Tested-by: Jason R. Coombs <jaraco@google.com> Reviewed-by: Mike Frysinger <vapier@google.com> Commit-Queue: Jason R. Coombs <jaraco@google.com>
Diffstat (limited to 'subcmds/info.py')
-rw-r--r--subcmds/info.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/info.py b/subcmds/info.py
index c24682c7..f637600e 100644
--- a/subcmds/info.py
+++ b/subcmds/info.py
@@ -248,7 +248,7 @@ class Info(PagedCommand):
248 248
249 for commit in commits: 249 for commit in commits:
250 split = commit.split() 250 split = commit.split()
251 self.text("{0:38}{1} ".format("", "-")) 251 self.text(f"{'':38}{'-'} ")
252 self.sha(split[0] + " ") 252 self.sha(split[0] + " ")
253 self.text(" ".join(split[1:])) 253 self.text(" ".join(split[1:]))
254 self.out.nl() 254 self.out.nl()