diff options
author | BNMetrics <luna@bnmetrics.com> | 2018-10-15 18:41:36 (GMT) |
---|---|---|
committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2018-10-15 18:41:36 (GMT) |
commit | 18fb1fb943b7dbd7f8a76017ee2a67ef13effb85 (patch) | |
tree | eb8236a053b1f1b5d46374d6271a53f2136fc1cd /Misc | |
parent | e890421e334ccf0c000c6b29c4a521d86cd12f47 (diff) | |
download | cpython-18fb1fb943b7dbd7f8a76017ee2a67ef13effb85.zip cpython-18fb1fb943b7dbd7f8a76017ee2a67ef13effb85.tar.gz cpython-18fb1fb943b7dbd7f8a76017ee2a67ef13effb85.tar.bz2 |
bpo-34844: logging.Formatter enhancement - Ensure style and format string matches in logging.Formatter (GH-9703)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-10-04-20-44-45.bpo-34844.Hnuxav.rst | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-10-04-20-44-45.bpo-34844.Hnuxav.rst b/Misc/NEWS.d/next/Library/2018-10-04-20-44-45.bpo-34844.Hnuxav.rst new file mode 100644 index 0000000..464dcb1 --- /dev/null +++ b/Misc/NEWS.d/next/Library/2018-10-04-20-44-45.bpo-34844.Hnuxav.rst @@ -0,0 +1,6 @@ +logging.Formatter enhancement - Ensure styles and fmt matches in +logging.Formatter - Added validate method in each format style class: +StrFormatStyle, PercentStyle, StringTemplateStyle. - This method is called +in the constructor of logging.Formatter class - Also re-raise the KeyError +in the format method of each style class, so it would a bit clear that it's +an error with the invalid format fields. |