From 72e3c8c277fa6fbe76e0762a8629308b2f70e1a0 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 5 Nov 2026 21:49:26 -0500 Subject: [PATCH] style: use `import event_log` everywhere Align with Google style guides and `import event_log` as a module rather than import symbols out of it. Change-Id: I2c558f1161490b354f0b956ac0e86e658942c3a2 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/654813 Reviewed-by: Brian Gan Commit-Queue: Mike Frysinger Tested-by: Mike Frysinger --- command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/command.py b/command.py index 4161e7295..26e45de7d 100644 --- a/command.py +++ b/command.py @@ -20,7 +20,7 @@ import re from typing import List, Optional, TYPE_CHECKING import error -from event_log import EventLog +import event_log import progress @@ -57,7 +57,7 @@ class Command: # provide event summary to callers. Only used by sync subcommand currently. # # NB: This is being replaced by git trace2 events. See git_trace2_event_log. - event_log = EventLog(enabled=False) + event_log = event_log.EventLog(enabled=False) # Whether this command is a "common" one, i.e. whether the user would # commonly use it or it's a more uncommon command. This is used by the help