diff options
author | l0rb <lorbritzer@yahoo.de> | 2019-11-06 21:21:40 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2019-11-06 21:21:40 (GMT) |
commit | 519cb8772a9745b1c7d8218cabcd2f96ceda4d62 (patch) | |
tree | edd2f5254bd9092e5216e33c69d9b2e57ff3d7c0 /Lib/logging/handlers.py | |
parent | 5c0c325453a175350e3c18ebb10cc10c37f9595c (diff) | |
download | cpython-519cb8772a9745b1c7d8218cabcd2f96ceda4d62.zip cpython-519cb8772a9745b1c7d8218cabcd2f96ceda4d62.tar.gz cpython-519cb8772a9745b1c7d8218cabcd2f96ceda4d62.tar.bz2 |
bpo-38716: stop rotating handlers from setting inherited namer and rotator to None (GH-17072)
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r-- | Lib/logging/handlers.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index 5641fee..c1aec98 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -48,6 +48,9 @@ class BaseRotatingHandler(logging.FileHandler): Not meant to be instantiated directly. Instead, use RotatingFileHandler or TimedRotatingFileHandler. """ + namer = None + rotator = None + def __init__(self, filename, mode, encoding=None, delay=False, errors=None): """ Use the specified filename for streamed logging @@ -58,8 +61,6 @@ class BaseRotatingHandler(logging.FileHandler): self.mode = mode self.encoding = encoding self.errors = errors - self.namer = None - self.rotator = None def emit(self, record): """ |