summaryrefslogtreecommitdiff
path: root/Python/formatter_unicode.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-19 00:47:17 +0100
committerVictor Stinner <victor.stinner@gmail.com>2016-03-19 00:47:17 +0100
commit1231a4615fd447f0988a72a134a1fc5e7d4e8d69 (patch)
tree1c4a7618f38dfac14417cb3546a7095def5054aa /Python/formatter_unicode.c
parent81ae89b6114f866870c42e42263bee8ce2ef5395 (diff)
downloadcpython-git-1231a4615fd447f0988a72a134a1fc5e7d4e8d69.tar.gz
Add _showwarnmsg() and _formatwarnmsg() to warnings
Issue #26568: add new _showwarnmsg() and _formatwarnmsg() functions to the warnings module. The C function warn_explicit() now calls warnings._showwarnmsg() with a warnings.WarningMessage as parameter, instead of calling warnings.showwarning() with multiple parameters. _showwarnmsg() calls warnings.showwarning() if warnings.showwarning() was replaced. Same for _formatwarnmsg(): call warnings.formatwarning() if it was replaced.
Diffstat (limited to 'Python/formatter_unicode.c')
0 files changed, 0 insertions, 0 deletions