summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2002-03-21 10:38:40 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2002-03-21 10:38:40 (GMT)
commitb25c2b0a4a46156bd8efa9eab39503e18fa0b805 (patch)
tree8a48a9537b24e37ab60c2f69404a848451251234 /Misc
parent047c05ebc4ce00f9ca8ccc5b8df437d758d130e8 (diff)
downloadcpython-b25c2b0a4a46156bd8efa9eab39503e18fa0b805.zip
cpython-b25c2b0a4a46156bd8efa9eab39503e18fa0b805.tar.gz
cpython-b25c2b0a4a46156bd8efa9eab39503e18fa0b805.tar.bz2
[Apply SF patch #504943]
This patch makes it possible to pass Warning instances as the first argument to warnings.warn. In this case the category argument will be ignored. The message text used will be str(warninginstance).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS2
1 files changed, 2 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index ada779e..4373f1a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -70,6 +70,8 @@ Library
- distutils bdist commands now offer a --skip-build option.
+- warnings.warn now accepts a Warning instance as first argument.
+
Tools/Demos
Build