diff options
author | Jason R. Coombs <jaraco@google.com> | 2023-09-29 11:04:49 -0400 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-10-31 16:03:54 +0000 |
commit | b32ccbb66bb16965ecb8b4e266c4e45186636c1b (patch) | |
tree | 1c1eda32af709f0cbf822de56f696ccd531ce6de /subcmds/branches.py | |
parent | b99272c601bc5f466c3cfc782bb852c2c967ad27 (diff) | |
download | git-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/branches.py')
-rw-r--r-- | subcmds/branches.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subcmds/branches.py b/subcmds/branches.py index d9a190be..59b5cb28 100644 --- a/subcmds/branches.py +++ b/subcmds/branches.py | |||
@@ -174,7 +174,7 @@ is shown, then the branch appears in all projects. | |||
174 | if _RelPath(p) not in have: | 174 | if _RelPath(p) not in have: |
175 | paths.append(_RelPath(p)) | 175 | paths.append(_RelPath(p)) |
176 | 176 | ||
177 | s = " %s %s" % (in_type, ", ".join(paths)) | 177 | s = f" {in_type} {', '.join(paths)}" |
178 | if not i.IsSplitCurrent and (width + 7 + len(s) < 80): | 178 | if not i.IsSplitCurrent and (width + 7 + len(s) < 80): |
179 | fmt = out.current if i.IsCurrent else fmt | 179 | fmt = out.current if i.IsCurrent else fmt |
180 | fmt(s) | 180 | fmt(s) |