summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/whrandom.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/whrandom.py b/Lib/whrandom.py
index a3a9bf7..bc0d1a4 100644
--- a/Lib/whrandom.py
+++ b/Lib/whrandom.py
@@ -33,6 +33,10 @@ have to use a lock around all calls. (I didn't want to slow this
down in the serial case by using a lock here.)
"""
+import warnings
+warnings.warn("the whrandom module is deprecated; please use the random module",
+ DeprecationWarning)
+
# Translated by Guido van Rossum from C source provided by
# Adrian Baddeley.