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 /platform_utils.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 'platform_utils.py')
-rw-r--r-- | platform_utils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform_utils.py b/platform_utils.py index d720a07e..4cf994bc 100644 --- a/platform_utils.py +++ b/platform_utils.py | |||
@@ -57,8 +57,8 @@ def _validate_winpath(path): | |||
57 | if _winpath_is_valid(path): | 57 | if _winpath_is_valid(path): |
58 | return path | 58 | return path |
59 | raise ValueError( | 59 | raise ValueError( |
60 | 'Path "{}" must be a relative path or an absolute ' | 60 | f'Path "{path}" must be a relative path or an absolute ' |
61 | "path starting with a drive letter".format(path) | 61 | "path starting with a drive letter" |
62 | ) | 62 | ) |
63 | 63 | ||
64 | 64 | ||