summaryrefslogtreecommitdiff
path: root/Lib/random.py
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-11-13 00:42:56 -0500
committerRaymond Hettinger <python@rcn.com>2016-11-13 00:42:56 -0500
commit24e4239434a00fa38187e390eb8ab29f1864350c (patch)
tree8654d57196f6cdaa947440bf873bc677b489005e /Lib/random.py
parent7d895d3c37e2ff5189d2d8b71def4e2fee34f10b (diff)
downloadcpython-git-24e4239434a00fa38187e390eb8ab29f1864350c.tar.gz
Fix typos
Diffstat (limited to 'Lib/random.py')
-rw-r--r--Lib/random.py2
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