diff options
author | Peeyush Aggarwal <peeyushaggarwal94@gmail.com> | 2023-08-25 08:15:26 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-25 08:15:26 (GMT) |
commit | 8d4052075ec43ac1ded7d2fa55c474295410bbdc (patch) | |
tree | 41bddcac68715c0e0174b62dd916e33bbf894d3a /Doc | |
parent | 135098743a0fae0efbcd98e35458e5bc721702e9 (diff) | |
download | cpython-8d4052075ec43ac1ded7d2fa55c474295410bbdc.zip cpython-8d4052075ec43ac1ded7d2fa55c474295410bbdc.tar.gz cpython-8d4052075ec43ac1ded7d2fa55c474295410bbdc.tar.bz2 |
gh-103384: Generalize the regex pattern `BaseConfigurator.INDEX_PATTERN` to allow spaces and non-alphanumeric characters in keys. (GH-103391)
Co-authored-by: Vinay Sajip <vinay_sajip@yahoo.co.uk>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Co-authored-by: Erlend E. Aasland <erlend@python.org>
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/library/logging.config.rst | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/logging.config.rst b/Doc/library/logging.config.rst index 448978f..53fbd07 100644 --- a/Doc/library/logging.config.rst +++ b/Doc/library/logging.config.rst @@ -685,7 +685,8 @@ resolve to ``'dev_team@domain.tld'`` and the string ``'support_team@domain.tld'``. The ``subject`` value could be accessed using either ``'cfg://handlers.email.subject'`` or, equivalently, ``'cfg://handlers.email[subject]'``. The latter form only needs to be -used if the key contains spaces or non-alphanumeric characters. If an +used if the key contains spaces or non-alphanumeric characters. Please note +that the characters ``[`` and ``]`` are not allowed in the keys. If an index value consists only of decimal digits, access will be attempted using the corresponding integer value, falling back to the string value if needed. |