From 6e99704fcffec9080e29b0ff42abff404d1e6f61 Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 10 Apr 2002 01:45:11 +0000 Subject: Add a deprecation warning to reflect the documented deprecation of the whrandom module. (The deprecation was effective in Python 2.1.) --- Lib/whrandom.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Lib/whrandom.py b/Lib/whrandom.py index a3a9bf7..d4c07e3 100644 --- a/Lib/whrandom.py +++ b/Lib/whrandom.py @@ -36,6 +36,11 @@ down in the serial case by using a lock here.) # Translated by Guido van Rossum from C source provided by # Adrian Baddeley. +import warnings +warnings.warn("the whrandom module is deprecated; please use random", + DeprecationWarning) +del warnings + class whrandom: def __init__(self, x = 0, y = 0, z = 0): -- cgit v0.12