File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -200,9 +200,9 @@ def format(self, record: LogRecord) -> str:
200200 if "{asctime}" in self .fmt or "%(asctime)s" in self .fmt :
201201 now = time .localtime ()
202202 # pylint: disable=line-too-long
203- vals [
204- "asctime "
205- ] = f" { now . tm_year } - { now . tm_mon :02d } - { now . tm_mday :02d } { now . tm_hour :02d } : { now . tm_min :02d } : { now . tm_sec :02d } "
203+ vals ["asctime" ] = (
204+ f" { now . tm_year } - { now . tm_mon :02d } - { now . tm_mday :02d } { now . tm_hour :02d } : { now . tm_min :02d } : { now . tm_sec :02d } "
205+ )
206206
207207 if self .defaults :
208208 for key , val in self .defaults .items ():
@@ -433,6 +433,7 @@ def emit(self, record: LogRecord) -> None:
433433 self .doRollover ()
434434 super ().emit (record )
435435
436+
436437class NullHandler (Handler ):
437438 """Provide an empty log handler.
438439
You can’t perform that action at this time.
0 commit comments