Skip to content

Commit b5aa5f0

Browse files
greezybacondpgeorge
authored andcommitted
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()`.
1 parent 50ac49c commit b5aa5f0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

python-stdlib/logging/logging.py

+1
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def format(self, record):
5858

5959
class StreamHandler(Handler):
6060
def __init__(self, stream=None):
61+
super().__init__()
6162
self.stream = _stream if stream is None else stream
6263
self.terminator = "\n"
6364

python-stdlib/logging/manifest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
metadata(version="0.6.0")
1+
metadata(version="0.6.1")
22

33
module("logging.py")

0 commit comments

Comments
 (0)