From 2b4df43c1c6c213ecbd2ee54bbfeb75fb2d14a84 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 4 Oct 2009 09:03:59 +0000 Subject: [PATCH] #7052: remove nonexisting NullHandler from logging.__all__. --- Lib/logging/__init__.py | 2 +- Lib/test/test___all__.py | 1 + Misc/NEWS | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 2b8a0217240..17d5220d040 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -25,7 +25,7 @@ To use, simply 'import logging' and log away! __all__ = ['BASIC_FORMAT', 'BufferingFormatter', 'CRITICAL', 'DEBUG', 'ERROR', 'FATAL', 'FileHandler', 'Filter', 'Formatter', 'Handler', 'INFO', - 'LogRecord', 'Logger', 'LoggerAdapter', 'NOTSET', 'NullHandler', + 'LogRecord', 'Logger', 'LoggerAdapter', 'NOTSET', 'StreamHandler', 'WARN', 'WARNING', 'addLevelName', 'basicConfig', 'captureWarnings', 'critical', 'debug', 'disable', 'error', 'exception', 'fatal', 'getLevelName', 'getLogger', 'getLoggerClass', diff --git a/Lib/test/test___all__.py b/Lib/test/test___all__.py index 0a8c5d652bf..9cc37de7115 100644 --- a/Lib/test/test___all__.py +++ b/Lib/test/test___all__.py @@ -91,6 +91,7 @@ class AllTest(unittest.TestCase): self.check_all("keyword") self.check_all("linecache") self.check_all("locale") + self.check_all("logging") self.check_all("macpath") self.check_all("macurl2path") self.check_all("mailbox") diff --git a/Misc/NEWS b/Misc/NEWS index ab14d9daebb..1400664e9ce 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -18,9 +18,12 @@ Core and Builtins Library ------- +- Issue #7052: Removed nonexisting NullHandler from logging.__all__. + - Issue #7039: Fixed distutils.tests.test_sysconfig when running on installation with no build. + What's New in Python 2.6.3 ==========================