[issue46168] Incorrect format specified for the "style" key in the configuration file format formatter example

New submission from David Bereza <bokunogf@gmail.com>: Documentation link: https://docs.python.org/3/library/logging.config.html#configuration-file-for... It seems that the example for the "formatter_form01" formatter section specifies following for the style(please note the single-quotes around the value). style='%' This seems to raise a ValueError with the message "Style must be one of..." when parsing the configuration file. Removing the single quotes seems to fix the issue: style=% ---------- assignee: docs@python components: Documentation messages: 409108 nosy: bokunogf, docs@python priority: normal severity: normal status: open title: Incorrect format specified for the "style" key in the configuration file format formatter example versions: Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue46168> _______________________________________

Daniel Diniz <ajaksu@gmail.com> added the comment: This example was added in issue 43047. It only seems to affect 3.10+ docs. Ian, is this something you'd like to tackle? ---------- keywords: +easy nosy: +ajaksu2, iwienand stage: -> needs patch versions: +Python 3.10, Python 3.11 -Python 3.8 _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue46168> _______________________________________

Samriddhi Bhardwaj <samriddhi.bhardwaj@gmail.com> added the comment: I would like to help with this issue. It should take me less than 5 days. ---------- nosy: +samriddhi.bhardwaj _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue46168> _______________________________________

Stanley <ostanley.lee@gmail.com> added the comment: Samriddhi, are you still working on this? ---------- nosy: +slateny _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue46168> _______________________________________
participants (4)
-
Daniel Diniz
-
David Bereza
-
Samriddhi Bhardwaj
-
Stanley