[issue20242] logging style parameter does not work correctly

kespindler report at bugs.python.org
Mon Jan 13 19:48:07 CET 2014


kespindler added the comment:

I created a patch that fixes this behavior for both { and $ style formats.

Previously, default format strings were not being set correctly for those styles. This patch ensures that the correct default_format string is used.

There is a minor "weirdness" issue that, due to there previously being 2 different default format strings for % style formatting, some tests rely on one, and some tests rely on the other. My patch remains backwards compatible with both default styles of format strings.

This patch also includes test cases for behavior with the style keyword, which was not being tested before.

----------
keywords: +patch
Added file: http://bugs.python.org/file33446/Issue20242.patch

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


More information about the Python-bugs-list mailing list