]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Add a source parameter to warnings.warn()
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 23:28:08 +0000 (00:28 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 22 Mar 2016 23:28:08 +0000 (00:28 +0100)
commite19558af1b6979edf27f7a05a6e47a8b5d113390
treef901801a0684eba2f662670a178c43d96918c4db
parent060f9bb6024580272440f57c612ca34d9beaa169
Add a source parameter to warnings.warn()

Issue #26604:

* Add a new optional source parameter to _warnings.warn() and warnings.warn()
* Modify asyncore, asyncio and _pyio modules to set the source parameter when
  logging a ResourceWarning warning
13 files changed:
Doc/library/warnings.rst
Lib/_pyio.py
Lib/asyncio/base_events.py
Lib/asyncio/base_subprocess.py
Lib/asyncio/proactor_events.py
Lib/asyncio/selector_events.py
Lib/asyncio/sslproto.py
Lib/asyncio/unix_events.py
Lib/asyncio/windows_utils.py
Lib/asyncore.py
Lib/tempfile.py
Lib/warnings.py
Python/_warnings.c