From: Andrew M. Kuchling Date: Sat, 7 Aug 2004 21:44:37 +0000 (+0000) Subject: Trigger DeprecationWarning X-Git-Tag: v2.4a3~336 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60395120f42c89f9e95c2f1a1e00002a648fa587;p=python Trigger DeprecationWarning --- diff --git a/Lib/whrandom.py b/Lib/whrandom.py index a3a9bf7f5e..bc0d1a4520 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.