]> granicus.if.org Git - python/commit
_warnings.warn_explicit(): try to import warnings
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 23:54:48 +0000 (00:54 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 23:54:48 +0000 (00:54 +0100)
commite98445a4deb2b2eb97de26e03fc8c4c2a5f256d4
treeb768387cfe4ef529994e36d5612e73fede636365
parent7bfa409ff841fd84dfa194dd9052650d0a28585d
_warnings.warn_explicit(): try to import warnings

Issue #26592: _warnings.warn_explicit() now tries to import the warnings module
(Python implementation) if the source parameter is set to be able to log the
traceback where the source was allocated.
Python/_warnings.c