Skip to content

Commit 6faddad

Browse files
committed
Change arg name for addHandler()
1 parent 335af26 commit 6faddad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_logging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def getEffectiveLevel(self) -> int:
208208
"""
209209
return self._level
210210

211-
def addHandler(self, handler: Handler):
211+
def addHandler(self, hdlr: Handler):
212212
"""Sets the handler of this logger to the specified handler.
213213
214214
*NOTE* this is slightly different from the CPython equivalent which adds
@@ -217,7 +217,7 @@ def addHandler(self, handler: Handler):
217217
:param LoggingHandler handler: the handler
218218
219219
"""
220-
self._handler = handler
220+
self._handler = hdlr
221221

222222
def hasHandlers(self) -> bool:
223223
"""Whether any handlers have been set for this logger"""

0 commit comments

Comments
 (0)