Skip to content

Commit

Permalink
Add a deprecation warning to reflect the documented deprecation of the
Browse files Browse the repository at this point in the history
whrandom module.  (The deprecation was effective in Python 2.1.)
  • Loading branch information
freddrake committed Apr 10, 2002
1 parent 4d61775 commit 6e99704
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Lib/whrandom.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@
# 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):
Expand Down

0 comments on commit 6e99704

Please sign in to comment.