mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Add a deprecation warning to reflect the documented deprecation of the
whrandom module. (The deprecation was effective in Python 2.1.)
This commit is contained in:
parent
4d61775a35
commit
6e99704fcf
1 changed files with 5 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue