[Python-checkins] python/dist/src/Lib whrandom.py,1.20,1.21
akuchling at users.sourceforge.net
akuchling at users.sourceforge.net
Sat Aug 7 23:44:39 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28765
Modified Files:
whrandom.py
Log Message:
Trigger DeprecationWarning
Index: whrandom.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/whrandom.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** whrandom.py 11 Apr 2002 20:57:30 -0000 1.20
--- whrandom.py 7 Aug 2004 21:44:37 -0000 1.21
***************
*** 34,37 ****
--- 34,41 ----
"""
+ 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.
More information about the Python-checkins
mailing list