Skip to content

Commit 2d43758

Browse files
authored
Fix pylint errors
1 parent 06aed54 commit 2d43758

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
@@ -145,9 +145,10 @@ def _level_for(value: int) -> str:
145145
- ``args`` - The additional positional arguments provided
146146
"""
147147

148-
_logRecordFactory = lambda name, level, msg, args: LogRecord(
149-
name, level, _level_for(level), msg, time.monotonic(), args
150-
)
148+
def _logRecordFactory(name, level, msg, args):
149+
return LogRecord(
150+
name, level, _level_for(level), msg, time.monotonic(), args
151+
)
151152

152153

153154
class Handler:

0 commit comments

Comments
 (0)