[Python-checkins] cpython: whatsnew: logging.fileConfig accepts ConfigParser instances. (#16110)

r.david.murray python-checkins at python.org
Mon Mar 10 23:11:34 CET 2014


http://hg.python.org/cpython/rev/113341605247
changeset:   89566:113341605247
user:        R David Murray <rdmurray at bitdance.com>
date:        Mon Mar 10 11:51:19 2014 -0400
summary:
  whatsnew: logging.fileConfig accepts ConfigParser instances. (#16110)

And missing NEWS entry.

files:
  Doc/whatsnew/3.4.rst |  8 ++++++++
  Misc/NEWS            |  3 +++
  2 files changed, 11 insertions(+), 0 deletions(-)


diff --git a/Doc/whatsnew/3.4.rst b/Doc/whatsnew/3.4.rst
--- a/Doc/whatsnew/3.4.rst
+++ b/Doc/whatsnew/3.4.rst
@@ -1006,6 +1006,14 @@
 setting *port* to ``None``).  (Contributed by Vinay Sajip in commit
 ce46195b56a9.)
 
+:func:`~logging.config.fileConfig` now accepts a
+:class:`configparser.RawConfigParser` subclass instance for the *fname*
+parameter.  This facilitates using a configuration file when logging
+configuration is just a part of the overall application configuration, or where
+the application modifies the configuration before passing it to
+:func:`~logging.config.fileConfig`.  (Contributed by Vinay Sajip in
+:issue:`16110`.)
+
 
 .. _whatsnew-marshal-3:
 
diff --git a/Misc/NEWS b/Misc/NEWS
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -3617,6 +3617,9 @@
 
 - Issue #16169: Fix ctypes.WinError()'s confusion between errno and winerror.
 
+- Issue #16110: logging.fileConfig now accepts a pre-initialised ConfigParser
+  instance.
+
 - Issue #1492704: shutil.copyfile() raises a distinct SameFileError now if
   source and destination are the same file. Patch by Atsuo Ishimoto.
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list