]> granicus.if.org Git - python/commitdiff
Trigger DeprecationWarning
authorAndrew M. Kuchling <amk@amk.ca>
Sat, 7 Aug 2004 21:44:37 +0000 (21:44 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Sat, 7 Aug 2004 21:44:37 +0000 (21:44 +0000)
Lib/whrandom.py

index a3a9bf7f5e146c6462a5d05d4ead6f87aff8a2dc..bc0d1a4520eac209807d29e79eac9d329b82c3cb 100644 (file)
@@ -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.