diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 21:44:37 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2004-08-07 21:44:37 (GMT) |
commit | 60395120f42c89f9e95c2f1a1e00002a648fa587 (patch) | |
tree | 3350737773f1d523c5fdeec4565bddfa6991a10c /Lib/whrandom.py | |
parent | 7219cbea8d36019192659c1442b3a676b7926fce (diff) | |
download | cpython-60395120f42c89f9e95c2f1a1e00002a648fa587.zip cpython-60395120f42c89f9e95c2f1a1e00002a648fa587.tar.gz cpython-60395120f42c89f9e95c2f1a1e00002a648fa587.tar.bz2 |
Trigger DeprecationWarning
Diffstat (limited to 'Lib/whrandom.py')
-rw-r--r-- | Lib/whrandom.py | 4 |
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. |