mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Trigger DeprecationWarning
This commit is contained in:
parent
7219cbea8d
commit
60395120f4
1 changed files with 4 additions and 0 deletions
|
@ -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.)
|
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
|
# Translated by Guido van Rossum from C source provided by
|
||||||
# Adrian Baddeley.
|
# Adrian Baddeley.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue