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
|
@ -36,6 +36,11 @@ down in the serial case by using a lock here.)
|
||||||
# Translated by Guido van Rossum from C source provided by
|
# Translated by Guido van Rossum from C source provided by
|
||||||
# Adrian Baddeley.
|
# Adrian Baddeley.
|
||||||
|
|
||||||
|
import warnings
|
||||||
|
warnings.warn("the whrandom module is deprecated; please use random",
|
||||||
|
DeprecationWarning)
|
||||||
|
del warnings
|
||||||
|
|
||||||
|
|
||||||
class whrandom:
|
class whrandom:
|
||||||
def __init__(self, x = 0, y = 0, z = 0):
|
def __init__(self, x = 0, y = 0, z = 0):
|
||||||
|
|
Loading…
Reference in New Issue