diff options
author | Guido van Rossum <guido@python.org> | 1998-05-20 17:13:01 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-05-20 17:13:01 (GMT) |
commit | 6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5 (patch) | |
tree | 07dc4e0ed7584d72e85f9daa4afdad6e0d650d2e /Demo/scripts | |
parent | b26a1b4e2b99f4473c2133a2206b782a7fa57932 (diff) | |
download | cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.zip cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.tar.gz cpython-6c3a2cbc525e7ca5dd86c547fa2a33d1d012fab5.tar.bz2 |
whrandom -> random
Diffstat (limited to 'Demo/scripts')
-rwxr-xr-x | Demo/scripts/markov.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Demo/scripts/markov.py b/Demo/scripts/markov.py index 6bd62d0..e1649f1 100755 --- a/Demo/scripts/markov.py +++ b/Demo/scripts/markov.py @@ -31,7 +31,7 @@ class Markov: return seq def test(): - import sys, string, whrandom, getopt + import sys, string, random, getopt args = sys.argv[1:] try: opts, args = getopt.getopt(args, '0123456789cdw') @@ -59,7 +59,7 @@ def test(): if o == '-q': debug = 0 if o == '-w': do_words = 1 if not args: args = ['-'] - m = Markov(histsize, whrandom.choice) + m = Markov(histsize, random.choice) try: for filename in args: if filename == '-': |