style: use import repo_trace everywhere

Align with Google style guides and `import repo_trace` as a module
rather than import symbols out of it.

Change-Id: I6bea5e7a68775e93b6b7fcd218db666350aff690
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/647803
Tested-by: Mike Frysinger <vapier@google.com>
Commit-Queue: Mike Frysinger <vapier@google.com>
Reviewed-by: Gavin Mak <gavinmak@google.com>
This commit is contained in:
Mike Frysinger authored and gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com committed 2026-10-23 09:01:00 -07:00
1 parent f95e7cd899
commit f7d252f5dc
8 files changed
+26 -28

No files matched your search

+5 -3
View File
@@ -26,7 +26,7 @@ import time
from git_command import git
import platform_utils
from repo_trace import Trace
import repo_trace
PROXY_PATH = os.path.join(os.path.dirname(__file__), "git_ssh")
@@ -201,7 +201,9 @@ class ProxyManager:
# is the same as 'myhost.com' where "User git" is setup in the user's
# ~/.ssh/config file.
check_command = command_base + ["-O", "check"]
with Trace("Call to ssh (check call): %s", " ".join(check_command)):
with repo_trace.Trace(
"Call to ssh (check call): %s", " ".join(check_command)
):
try:
check_process = subprocess.Popen(
check_command,
@@ -250,7 +252,7 @@ class ProxyManager:
)
p = None
try:
with Trace("Call to ssh: %s", " ".join(command)):
with repo_trace.Trace("Call to ssh: %s", " ".join(command)):
p = subprocess.Popen(command)
except Exception as e:
self._master_broken.value = True