From ad5fa2fbd08ee221002f41fd6a9c41362396cb6d Mon Sep 17 00:00:00 2001 From: Vinay Sajip Date: Mon, 27 Apr 2009 13:55:05 +0000 Subject: Issue #5854: Updated __all__ to include some missing names and remove some names which should not be exported. --- Lib/logging/__init__.py | 9 ++++++--- Misc/NEWS | 9 ++++++--- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index e294880..c95cea0 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -26,9 +26,12 @@ To use, simply 'import logging' and log away! import sys, os, time, io, traceback, warnings __all__ = ['BASIC_FORMAT', 'BufferingFormatter', 'CRITICAL', 'DEBUG', 'ERROR', - 'FATAL', 'FileHandler', 'Filter', 'Filterer', 'Formatter', 'Handler', - 'INFO', 'LogRecord', 'Logger', 'Manager', 'NOTSET', 'PlaceHolder', - 'RootLogger', 'StreamHandler', 'WARN', 'WARNING'] + 'FATAL', 'FileHandler', 'Filter', 'Formatter', 'Handler', 'INFO', + 'LogRecord', 'Logger', 'LoggerAdapter', 'NOTSET', 'NullHandler', + 'StreamHandler', 'WARN', 'WARNING', 'addLevelName', 'basicConfig', + 'captureWarnings', 'critical', 'debug', 'disable', 'error', + 'exception', 'fatal', 'getLevelName', 'getLogger', 'getLoggerClass', + 'info', 'log', 'makeLogRecord', 'setLoggerClass', 'warn', 'warning'] try: import codecs diff --git a/Misc/NEWS b/Misc/NEWS index 2240c62..217276f 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -89,6 +89,9 @@ Installation Library ------- +- Issue #5854: Updated __all__ to include some missing names and remove some + names which should not be exported. + - Issue #3102: All global symbols that the _ctypes extension defines are now prefixed with 'Py' or '_ctypes'. @@ -455,7 +458,7 @@ Core and Builtins Library ------- -- Issue #5810: Fixed Distutils test_build_scripts so it uses +- Issue #5810: Fixed Distutils test_build_scripts so it uses sysconfig.get_config_vars. - Issue #4951: Fixed failure in test_httpservers. @@ -466,7 +469,7 @@ Library - Issue #5732: added a new command in Distutils: check. -- Issue #5731: Distutils bdist_wininst no longer worked on non-Windows +- Issue #5731: Distutils bdist_wininst no longer worked on non-Windows platforms. Initial patch by Paul Moore. - Issue #5095: Added bdist_msi to the list of bdist supported formats. @@ -931,7 +934,7 @@ Tests ----- - regrtest no longer treats ImportError as equivalent to SkipTest. Imports - that should cause a test to be skipped are now done using import_module + that should cause a test to be skipped are now done using import_module from test support, which does the conversion. - Issue #5083: New 'gui' resource for regrtest. -- cgit v0.12