From cd391e77d0462b2768f4f5deb5954a6f456047e9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 25 Mar 2025 12:53:55 -0400 Subject: black: update to v25 Requires a little reformatting in the tree. Change-Id: Iaa40fe0dfca372c49c04cc26edccb5f7b0c2a8ad Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/462883 Commit-Queue: Mike Frysinger Reviewed-by: Gavin Mak Tested-by: Mike Frysinger --- git_command.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'git_command.py') diff --git a/git_command.py b/git_command.py index 55216b1c..04844079 100644 --- a/git_command.py +++ b/git_command.py @@ -238,9 +238,9 @@ def _build_env( s = p + " " + s env["GIT_CONFIG_PARAMETERS"] = s if "GIT_ALLOW_PROTOCOL" not in env: - env[ - "GIT_ALLOW_PROTOCOL" - ] = "file:git:http:https:ssh:persistent-http:persistent-https:sso:rpc" + env["GIT_ALLOW_PROTOCOL"] = ( + "file:git:http:https:ssh:persistent-http:persistent-https:sso:rpc" + ) env["GIT_HTTP_USER_AGENT"] = user_agent.git if objdir: @@ -350,9 +350,9 @@ class GitCommand: "Project": e.project, "CommandName": command_name, "Message": str(e), - "ReturnCode": str(e.git_rc) - if e.git_rc is not None - else None, + "ReturnCode": ( + str(e.git_rc) if e.git_rc is not None else None + ), "IsError": log_as_error, } ) -- cgit v1.2.3-54-g00ecf