From b5aa5f0d1bcfcd2f8ab14def0d86204ef02ae705 Mon Sep 17 00:00:00 2001 From: Jared Hancock Date: Mon, 24 Jun 2024 16:51:26 -0500 Subject: [PATCH] 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()`. --- python-stdlib/logging/logging.py | 1 + python-stdlib/logging/manifest.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python-stdlib/logging/logging.py b/python-stdlib/logging/logging.py index d17e42c4f..f4874df7d 100644 --- a/python-stdlib/logging/logging.py +++ b/python-stdlib/logging/logging.py @@ -58,6 +58,7 @@ def format(self, record): class StreamHandler(Handler): def __init__(self, stream=None): + super().__init__() self.stream = _stream if stream is None else stream self.terminator = "\n" diff --git a/python-stdlib/logging/manifest.py b/python-stdlib/logging/manifest.py index daf5d9c94..d9f0ee886 100644 --- a/python-stdlib/logging/manifest.py +++ b/python-stdlib/logging/manifest.py @@ -1,3 +1,3 @@ -metadata(version="0.6.0") +metadata(version="0.6.1") module("logging.py")