diff options
author | Fred Drake <fdrake@acm.org> | 2002-04-10 01:45:11 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2002-04-10 01:45:11 (GMT) |
commit | 6e99704fcffec9080e29b0ff42abff404d1e6f61 (patch) | |
tree | f4e30cd914983463550cf47f3e2a44a8a93a5b1b /Lib | |
parent | 4d61775a3551a8ed3d8b3235600a5bb48c60341b (diff) | |
download | cpython-6e99704fcffec9080e29b0ff42abff404d1e6f61.zip cpython-6e99704fcffec9080e29b0ff42abff404d1e6f61.tar.gz cpython-6e99704fcffec9080e29b0ff42abff404d1e6f61.tar.bz2 |
Add a deprecation warning to reflect the documented deprecation of the
whrandom module. (The deprecation was effective in Python 2.1.)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/whrandom.py | 5 |
1 files changed, 5 insertions, 0 deletions
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): |