[New-bugs-announce] [issue3726] Allow ', <whitespace>' delimiters in logging.config.fileConfig()

Will Maier report at bugs.python.org
Fri Aug 29 15:44:43 CEST 2008


New submission from Will Maier <willmaier at ml1.net>:

Currently, logging.config.fileConfig() inconsistently handles lines like:

[handlers]
keys = spam, eggs

[formatters]
keys = foo, bar

It does, however, correctly handle the ', ' delimiter in the [loggers]
section. This is because the various _install_*() functions in
logging.config aren't consistent about whether (and when) or not they
strip whitespace when generating key names.

Though the stdlib documentation only includes examples in the [handlers]
and [formatters] section with ',' delimiters, it seems reasonable to
expect that logging.config.fileConfig() should handle ', '. The attached
test demonstrates the failure and suggests a solution.

Thanks!
whitespace

----------
components: Library (Lib)
files: logging.diff
keywords: patch
messages: 72134
nosy: wcmaier
severity: normal
status: open
title: Allow ',<whitespace>' delimiters in logging.config.fileConfig()
type: behavior
versions: Python 2.6
Added file: http://bugs.python.org/file11304/logging.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3726>
_______________________________________


More information about the New-bugs-announce mailing list