Skip to content

Commit 9b7859e

Browse files
committed
Patch: Reformatted code using black
1 parent 97f6c40 commit 9b7859e

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

adafruit_logging.py

+18-6
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,23 @@
5555
__version__ = "0.0.0-auto.0"
5656
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_Logger.git"
5757
# pylint:disable=undefined-all-variable
58-
__all__ = ['LEVELS', 'NOTSET', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL',
59-
'level_for', 'LoggingHandler', 'PrintHandler', 'logger_cache',
60-
'null_logger', 'getLogger', 'Logger', 'NullLogger']
58+
__all__ = [
59+
"LEVELS",
60+
"NOTSET",
61+
"DEBUG",
62+
"INFO",
63+
"WARNING",
64+
"ERROR",
65+
"CRITICAL",
66+
"level_for",
67+
"LoggingHandler",
68+
"PrintHandler",
69+
"logger_cache",
70+
"null_logger",
71+
"getLogger",
72+
"Logger",
73+
"NullLogger",
74+
]
6175

6276

6377
LEVELS = [
@@ -97,9 +111,7 @@ def format(self, log_level, message):
97111
:param str message: the message to log
98112
99113
"""
100-
return "{0}: {1} - {2}".format(time.monotonic(),
101-
level_for(log_level),
102-
message)
114+
return "{0}: {1} - {2}".format(time.monotonic(), level_for(log_level), message)
103115

104116
def emit(self, log_level, message):
105117
"""Send a message where it should go.

0 commit comments

Comments
 (0)