From: Guido van Rossum Date: Thu, 14 Nov 2002 12:52:17 +0000 (+0000) Subject: From SF patch 638299 [by Vinaj]: fileConfig() now takes an optional X-Git-Tag: v2.3c1~3423 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3165786dd19fca1b967b2f4c782d20bc2339a6e3;p=python From SF patch 638299 [by Vinaj]: fileConfig() now takes an optional defaults dictionary parameter which is passed to ConfigParser. --- diff --git a/Lib/logging/config.py b/Lib/logging/config.py index 760da08f5a..4a7832b455 100644 --- a/Lib/logging/config.py +++ b/Lib/logging/config.py @@ -40,7 +40,7 @@ DEFAULT_LOGGING_CONFIG_PORT = 9030 # _listener holds the server object doing the listening _listener = None -def fileConfig(fname): +def fileConfig(fname, defaults=None): """ Read the logging configuration from a ConfigParser-format file. @@ -55,7 +55,7 @@ def fileConfig(fname): """ import ConfigParser - cp = ConfigParser.ConfigParser() + cp = ConfigParser.ConfigParser(defaults) if hasattr(cp, 'readfp') and hasattr(fname, 'readline'): cp.readfp(fname) else: