commit | 60395120f42c89f9e95c2f1a1e00002a648fa587 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Sat Aug 07 21:44:37 2004 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Sat Aug 07 21:44:37 2004 +0000 |
tree | 3350737773f1d523c5fdeec4565bddfa6991a10c | |
parent | 7219cbea8d36019192659c1442b3a676b7926fce [diff] [blame] |
Trigger DeprecationWarning
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 @@ 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.