summaryrefslogtreecommitdiffstats
path: root/Doc/library/warnings.rst
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2011-08-19 00:14:03 (GMT)
committerÉric Araujo <merwok@netwok.org>2011-08-19 00:14:03 (GMT)
commit29a0b57e4ed19532dc78dbf08b957c85bfbafbd6 (patch)
treeb7fae5150cb2e44679947e109e68eb2a05076f7d /Doc/library/warnings.rst
parentd478a46d563413d51a730678e4c72a54d2881123 (diff)
downloadcpython-29a0b57e4ed19532dc78dbf08b957c85bfbafbd6.zip
cpython-29a0b57e4ed19532dc78dbf08b957c85bfbafbd6.tar.gz
cpython-29a0b57e4ed19532dc78dbf08b957c85bfbafbd6.tar.bz2
Backport source links from 3.x.
Existing links have been updated to use the new reST role. In some files, I have also made cosmetic changes to the header.
Diffstat (limited to 'Doc/library/warnings.rst')
-rw-r--r--Doc/library/warnings.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/warnings.rst b/Doc/library/warnings.rst
index b3c1994..dbcf148 100644
--- a/Doc/library/warnings.rst
+++ b/Doc/library/warnings.rst
@@ -9,6 +9,10 @@
.. versionadded:: 2.1
+**Source code:** :source:`Lib/warnings.py`
+
+--------------
+
Warning messages are typically issued in situations where it is useful to alert
the user of some condition in a program, where that condition (normally) doesn't
warrant raising an exception and terminating the program. For example, one