summaryrefslogtreecommitdiff
path: root/Lib/logging/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/logging/config.py')
-rw-r--r--Lib/logging/config.py4
1 files changed, 2 insertions, 2 deletions
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: