Skip to content

Commit 880b850

Browse files
committed
Reformatted per pre-commit
1 parent 1eae018 commit 880b850

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

adafruit_logging.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def _emit(self, log_level: int, message: str):
131131
class StreamHandler(Handler):
132132
"""Send logging messages to a stream, `sys.stderr` (typically
133133
the serial console) by default.
134-
134+
135135
:param stream: The stream to log to, default is `sys.stderr`
136136
"""
137137

@@ -141,7 +141,7 @@ def __init__(self, stream=None):
141141
stream = sys.stderr
142142
self.stream = stream
143143
"""The stream to log to"""
144-
144+
145145
def _emit(self, log_level: int, message: str):
146146
"""Send a message to the console.
147147
@@ -157,11 +157,13 @@ def _emit(self, log_level: int, message: str):
157157

158158
logger_cache = {}
159159

160+
160161
def _addLogger(logger_name: str):
161162
"""Adds the logger if it doesn't already exist"""
162163
if logger_name not in logger_cache:
163164
logger_cache[logger_name] = Logger(logger_name)
164165

166+
165167
# pylint:disable=global-statement
166168
def getLogger(logger_name: str) -> "Logger":
167169
"""Create or retrieve a logger by name
@@ -350,4 +352,3 @@ def _emit(self, log_level: int, message: str):
350352
:param msg: The message to log
351353
"""
352354
self.logfile.write(self._format(log_level, message))
353-

0 commit comments

Comments
 (0)