diff options
author | Raymond Hettinger <python@rcn.com> | 2016-11-13 00:42:56 -0500 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2016-11-13 00:42:56 -0500 |
commit | 24e4239434a00fa38187e390eb8ab29f1864350c (patch) | |
tree | 8654d57196f6cdaa947440bf873bc677b489005e /Lib/random.py | |
parent | 7d895d3c37e2ff5189d2d8b71def4e2fee34f10b (diff) | |
download | cpython-git-24e4239434a00fa38187e390eb8ab29f1864350c.tar.gz |
Fix typos
Diffstat (limited to 'Lib/random.py')
-rw-r--r-- | Lib/random.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/random.py b/Lib/random.py index d557acc92b..ca90e1459d 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -352,7 +352,7 @@ class Random(_random.Random): return [population[_int(random() * total)] for i in range(k)] cum_weights = list(_itertools.accumulate(weights)) elif weights is not None: - raise TypeError('Cannot specify both weights and cumulative_weights') + raise TypeError('Cannot specify both weights and cumulative weights') if len(cum_weights) != len(population): raise ValueError('The number of weights does not match the population') bisect = _bisect.bisect |