summaryrefslogtreecommitdiffstats
path: root/subcmds/abandon.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/abandon.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/abandon.py')
-rw-r--r--subcmds/abandon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/abandon.py b/subcmds/abandon.py
index f6c0c66c..e280d69e 100644
--- a/subcmds/abandon.py
+++ b/subcmds/abandon.py
@@ -117,7 +117,7 @@ It is equivalent to "git branch -D <branchname>".
117 all_projects, 117 all_projects,
118 callback=_ProcessResults, 118 callback=_ProcessResults,
119 output=Progress( 119 output=Progress(
120 "Abandon %s" % (nb,), len(all_projects), quiet=opt.quiet 120 f"Abandon {nb}", len(all_projects), quiet=opt.quiet
121 ), 121 ),
122 ) 122 )
123 123
@@ -152,4 +152,4 @@ It is equivalent to "git branch -D <branchname>".
152 _RelPath(p) for p in success[br] 152 _RelPath(p) for p in success[br]
153 ) 153 )
154 ) 154 )
155 print("%s%s| %s\n" % (br, " " * (width - len(br)), result)) 155 print(f"{br}{' ' * (width - len(br))}| {result}\n")