]> granicus.if.org Git - python/commitdiff
Add a deprecation warning to reflect the documented deprecation of the
authorFred Drake <fdrake@acm.org>
Wed, 10 Apr 2002 01:45:11 +0000 (01:45 +0000)
committerFred Drake <fdrake@acm.org>
Wed, 10 Apr 2002 01:45:11 +0000 (01:45 +0000)
whrandom module.  (The deprecation was effective in Python 2.1.)

Lib/whrandom.py

index a3a9bf7f5e146c6462a5d05d4ead6f87aff8a2dc..d4c07e3260d3ebdf528cf6d22c2ce150a3ebaf12 100644 (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
 # 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):