From 220241448f6456b041b1d9332b477c7c75acdac7 Mon Sep 17 00:00:00 2001 From: Kevin Hester Date: Tue, 25 Jun 2024 11:08:47 -0700 Subject: [PATCH] more fighting with trunk --- meshtastic/slog/slog.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/meshtastic/slog/slog.py b/meshtastic/slog/slog.py index 720886a..1eac5e7 100644 --- a/meshtastic/slog/slog.py +++ b/meshtastic/slog/slog.py @@ -93,9 +93,9 @@ class StructuredLogger: """ self.client = client self.writer = ArrowWriter(f"{dir_path}/slog.arrow") - self.raw_file = open( + self.raw_file = open( # pylint: disable=consider-using-with f"{dir_path}/raw.txt", "w", encoding="utf8" - ) # pylint: disable=consider-using-with + ) self.listener = pub.subscribe(self._onLogMessage, TOPIC_MESHTASTIC_LOG_LINE) def close(self) -> None: @@ -105,8 +105,8 @@ class StructuredLogger: self.raw_file.close() # Close the raw.txt file def _onLogMessage( - self, line: str, interface: MeshInterface - ) -> None: # pylint: disable=unused-argument + self, line: str, interface: MeshInterface # pylint: disable=unused-argument + ) -> None: """Handle log messages. line (str): the line of log output