From 60395120f42c89f9e95c2f1a1e00002a648fa587 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Sat, 7 Aug 2004 21:44:37 +0000 Subject: Trigger DeprecationWarning --- Lib/whrandom.py | 4 ++++ 1 file changed, 4 insertions(+) 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. -- cgit v0.12