]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-35178: Fix warnings._formatwarnmsg() (GH-12033)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 1 Mar 2019 17:40:10 +0000 (09:40 -0800)
committerGitHub <noreply@github.com>
Fri, 1 Mar 2019 17:40:10 +0000 (09:40 -0800)
commitb94874f7e27cbc92e0aec8779ee98bcb16efb257
tree70f82a568401b1859269602d4d18261f5f3ad969
parent70852b1eb6fbcc41fe9cad042e9ca61c5148fbda
bpo-35178: Fix warnings._formatwarnmsg() (GH-12033)

Ensure custom formatwarning function can receive line as positional argument.

Co-Authored-By: Tashrif Billah <tashrifbillah@gmail.com>
(cherry picked from commit be7c460fb50efe3b88a00281025d76acc62ad2fd)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
Lib/test/test_warnings/__init__.py
Lib/warnings.py
Misc/NEWS.d/next/Library/2019-02-25-23-04-00.bpo-35178.NA_rXa.rst [new file with mode: 0644]