mirror of
https://github.com/python/cpython
synced 2024-07-21 02:05:18 +00:00
Trigger DeprecationWarning
This commit is contained in:
parent
7219cbea8d
commit
60395120f4
|
@ -33,6 +33,10 @@
|
|||
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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue