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 --- editor.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'editor.py') diff --git a/editor.py b/editor.py index 10ff158b..359cff93 100644 --- a/editor.py +++ b/editor.py @@ -104,9 +104,7 @@ least one of these before using this command.""", # noqa: E501 try: rc = subprocess.Popen(args, shell=shell).wait() except OSError as e: - raise EditorError( - "editor failed, %s: %s %s" % (str(e), editor, path) - ) + raise EditorError(f"editor failed, {str(e)}: {editor} {path}") if rc != 0: raise EditorError( "editor failed with exit status %d: %s %s" -- cgit v1.2.3-54-g00ecf