summaryrefslogtreecommitdiffstats
path: root/editor.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 /editor.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 'editor.py')
-rw-r--r--editor.py4
1 files changed, 1 insertions, 3 deletions
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
104 try: 104 try:
105 rc = subprocess.Popen(args, shell=shell).wait() 105 rc = subprocess.Popen(args, shell=shell).wait()
106 except OSError as e: 106 except OSError as e:
107 raise EditorError( 107 raise EditorError(f"editor failed, {str(e)}: {editor} {path}")
108 "editor failed, %s: %s %s" % (str(e), editor, path)
109 )
110 if rc != 0: 108 if rc != 0:
111 raise EditorError( 109 raise EditorError(
112 "editor failed with exit status %d: %s %s" 110 "editor failed with exit status %d: %s %s"