kopia lustrzana https://github.com/micropython/micropython-lib
logging: Fix StreamHandler to call parent constructor.
Otherwise there's a crash on line 70 where level is not a property of the class unless explicitly set with `setLevel()`.pull/887/head
rodzic
50ac49c42b
commit
b5aa5f0d1b
|
@ -58,6 +58,7 @@ class Handler:
|
||||||
|
|
||||||
class StreamHandler(Handler):
|
class StreamHandler(Handler):
|
||||||
def __init__(self, stream=None):
|
def __init__(self, stream=None):
|
||||||
|
super().__init__()
|
||||||
self.stream = _stream if stream is None else stream
|
self.stream = _stream if stream is None else stream
|
||||||
self.terminator = "\n"
|
self.terminator = "\n"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
metadata(version="0.6.0")
|
metadata(version="0.6.1")
|
||||||
|
|
||||||
module("logging.py")
|
module("logging.py")
|
||||||
|
|
Ładowanie…
Reference in New Issue