mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-11-14 00:07:20 +00:00
style: use import git_trace2_event_log_base everywhere
Align with Google style guides and `import git_trace2_event_log_base` as a module rather than import symbols out of it. Change-Id: I98c68a9ddca06325a8e0a620346c408e1ff3b661 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/654816 Tested-by: Mike Frysinger <vapier@google.com> Commit-Queue: Mike Frysinger <vapier@google.com> Reviewed-by: Brian Gan <brgan@google.com>
This commit is contained in:
1 parent
221a31cd0a
commit
0f83e19bbb
3 files changed
+4
-5
No files matched your search
@@ -9,7 +9,6 @@ per-file-ignores =
|
||||
command.py: IMR241,
|
||||
git_command.py: IMR241,
|
||||
git_status.py: IMR241,
|
||||
git_trace2_event_log.py: IMR241,
|
||||
main.py: IMR241,
|
||||
manifest_xml.py: IMR241,
|
||||
subcmds/abandon.py: IMR241,
|
||||
|
||||
+2
-2
@@ -21,7 +21,7 @@ import sys
|
||||
from typing import Any, Optional
|
||||
|
||||
import error
|
||||
from git_trace2_event_log_base import BaseEventLog
|
||||
import git_trace2_event_log_base
|
||||
import platform_utils
|
||||
import repo_logging
|
||||
import repo_trace
|
||||
@@ -347,7 +347,7 @@ class GitCommand:
|
||||
command.extend(cmdv[1:])
|
||||
|
||||
event_log = (
|
||||
BaseEventLog(env=env, add_init_count=True)
|
||||
git_trace2_event_log_base.BaseEventLog(env=env, add_init_count=True)
|
||||
if add_event_log
|
||||
else None
|
||||
)
|
||||
|
||||
@@ -15,10 +15,10 @@
|
||||
"""Event logging in the git trace2 EVENT format."""
|
||||
|
||||
import git_command
|
||||
from git_trace2_event_log_base import BaseEventLog
|
||||
import git_trace2_event_log_base
|
||||
|
||||
|
||||
class EventLog(BaseEventLog):
|
||||
class EventLog(git_trace2_event_log_base.BaseEventLog):
|
||||
"""Event log that records events that occurred during a repo invocation.
|
||||
|
||||
Events are written to the log as a consecutive JSON entries, one per line.
|
||||
|
||||
Reference in new issue
Block a user