diff --git a/Lib/whrandom.py b/Lib/whrandom.py index a3a9bf7f5e1..d4c07e3260d 100644 --- a/Lib/whrandom.py +++ b/Lib/whrandom.py @@ -36,6 +36,11 @@ # 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):