From b32ccbb66bb16965ecb8b4e266c4e45186636c1b Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 29 Sep 2023 11:04:49 -0400 Subject: 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 Reviewed-by: Mike Frysinger Commit-Queue: Jason R. Coombs --- subcmds/__init__.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'subcmds/__init__.py') diff --git a/subcmds/__init__.py b/subcmds/__init__.py index 965ad0bb..83ec8470 100644 --- a/subcmds/__init__.py +++ b/subcmds/__init__.py @@ -37,9 +37,7 @@ for py in os.listdir(my_dir): try: cmd = getattr(mod, clsn) except AttributeError: - raise SyntaxError( - "%s/%s does not define class %s" % (__name__, py, clsn) - ) + raise SyntaxError(f"{__name__}/{py} does not define class {clsn}") name = name.replace("_", "-") cmd.NAME = name -- cgit v1.2.3-54-g00ecf