]> granicus.if.org Git - python/commit
bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622)
authorThomas Kluyver <takowl@gmail.com>
Fri, 8 Jun 2018 19:28:37 +0000 (21:28 +0200)
committerBrett Cannon <brettcannon@users.noreply.github.com>
Fri, 8 Jun 2018 19:28:37 +0000 (12:28 -0700)
commit11a896652ee98aa44e59ed25237f9efb56635dcf
tree1f63d8ddb6436d64db43ae7147bddbd994cd06a8
parent3b0b90c8c3b8161f0ae9005b83b9b6449d4a8476
bpo-33375: Get filename for warnings from frame.f_code.co_filename (GH-6622)

More consistent with how other parts of Python find the filename (e.g. tracebacks and pdb).
Lib/test/test_warnings/__init__.py
Lib/warnings.py
Misc/NEWS.d/next/Library/2018-04-28-08-11-35.bpo-33375.Dbq1fz.rst [new file with mode: 0644]
Python/_warnings.c