From: Fred Drake Date: Wed, 10 Apr 2002 01:45:11 +0000 (+0000) Subject: Add a deprecation warning to reflect the documented deprecation of the X-Git-Tag: v2.3c1~6071 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e99704fcffec9080e29b0ff42abff404d1e6f61;p=thirdparty%2FPython%2Fcpython.git Add a deprecation warning to reflect the documented deprecation of the whrandom module. (The deprecation was effective in Python 2.1.) --- diff --git a/Lib/whrandom.py b/Lib/whrandom.py index a3a9bf7f5e14..d4c07e3260d3 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):