Skip to content

Commit 2202414

Browse files
committed
more fighting with trunk
1 parent 9b61f11 commit 2202414

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

meshtastic/slog/slog.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def __init__(self, client: MeshInterface, dir_path: str) -> None:
9393
"""
9494
self.client = client
9595
self.writer = ArrowWriter(f"{dir_path}/slog.arrow")
96-
self.raw_file = open(
96+
self.raw_file = open( # pylint: disable=consider-using-with
9797
f"{dir_path}/raw.txt", "w", encoding="utf8"
98-
) # pylint: disable=consider-using-with
98+
)
9999
self.listener = pub.subscribe(self._onLogMessage, TOPIC_MESHTASTIC_LOG_LINE)
100100

101101
def close(self) -> None:
@@ -105,8 +105,8 @@ def close(self) -> None:
105105
self.raw_file.close() # Close the raw.txt file
106106

107107
def _onLogMessage(
108-
self, line: str, interface: MeshInterface
109-
) -> None: # pylint: disable=unused-argument
108+
self, line: str, interface: MeshInterface # pylint: disable=unused-argument
109+
) -> None:
110110
"""Handle log messages.
111111
112112
line (str): the line of log output

0 commit comments

Comments
 (0)