Add a deprecation warning to reflect the documented deprecation of the

whrandom module.  (The deprecation was effective in Python 2.1.)
This commit is contained in:
Fred Drake 2002-04-10 01:45:11 +00:00
parent 4d61775a35
commit 6e99704fcf
1 changed files with 5 additions and 0 deletions

View File

@ -36,6 +36,11 @@ down in the serial case by using a lock here.)
# Translated by Guido van Rossum from C source provided by # Translated by Guido van Rossum from C source provided by
# Adrian Baddeley. # Adrian Baddeley.
import warnings
warnings.warn("the whrandom module is deprecated; please use random",
DeprecationWarning)
del warnings
class whrandom: class whrandom:
def __init__(self, x = 0, y = 0, z = 0): def __init__(self, x = 0, y = 0, z = 0):