summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2004-08-07 21:44:37 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2004-08-07 21:44:37 (GMT)
commit60395120f42c89f9e95c2f1a1e00002a648fa587 (patch)
tree3350737773f1d523c5fdeec4565bddfa6991a10c
parent7219cbea8d36019192659c1442b3a676b7926fce (diff)
downloadcpython-60395120f42c89f9e95c2f1a1e00002a648fa587.zip
cpython-60395120f42c89f9e95c2f1a1e00002a648fa587.tar.gz
cpython-60395120f42c89f9e95c2f1a1e00002a648fa587.tar.bz2
Trigger DeprecationWarning
-rw-r--r--Lib/whrandom.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/whrandom.py b/Lib/whrandom.py
index a3a9bf7..bc0d1a4 100644
--- a/Lib/whrandom.py
+++ b/Lib/whrandom.py
@@ -33,6 +33,10 @@ have to use a lock around all calls. (I didn't want to slow this
down in the serial case by using a lock here.)
"""
+import warnings
+warnings.warn("the whrandom module is deprecated; please use the random module",
+ DeprecationWarning)
+
# Translated by Guido van Rossum from C source provided by
# Adrian Baddeley.