classification
Title: Incorrect format specified for the "style" key in the configuration file format formatter example
Type: Stage: needs patch
Components: Documentation Versions: Python 3.11, Python 3.10
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: ajaksu2, bokunogf, docs@python, iwienand, samriddhi.bhardwaj
Priority: normal Keywords: easy

Created on 2021-12-23 20:58 by bokunogf, last changed 2021-12-27 18:23 by samriddhi.bhardwaj.

Messages (3)
msg409108 - (view) Author: David Bereza (bokunogf) Date: 2021-12-23 20:58
Documentation link: https://docs.python.org/3/library/logging.config.html#configuration-file-format

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=%
msg409111 - (view) Author: Daniel Diniz (ajaksu2) * (Python triager) Date: 2021-12-23 23:03
This example was added in issue 43047. It only seems to affect 3.10+ docs. Ian, is this something you'd like to tackle?
msg409238 - (view) Author: Samriddhi Bhardwaj (samriddhi.bhardwaj) Date: 2021-12-27 18:23
I would like to help with this issue. It should take me less than 5 days.
History
Date User Action Args
2021-12-27 18:23:53samriddhi.bhardwajsetnosy: + samriddhi.bhardwaj
messages: + msg409238
2021-12-23 23:03:45ajaksu2setversions: + Python 3.10, Python 3.11, - Python 3.8
nosy: + iwienand, ajaksu2

messages: + msg409111

keywords: + easy
stage: needs patch
2021-12-23 20:58:06bokunogfcreate