diff options
author | Raymond Hettinger <python@rcn.com> | 2011-05-18 17:28:50 -0500 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2011-05-18 17:28:50 -0500 |
commit | 22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52 (patch) | |
tree | 755a9681bfff3267ad4722ebde3ee3f1e6f9d435 /Lib/random.py | |
parent | d021f72abfbff732fdb25da7965fe0316a86c3b3 (diff) | |
download | cpython-git-22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52.tar.gz |
Minor code cleanup.
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 1ab75d57d8..987cff16c4 100644 --- a/Lib/random.py +++ b/Lib/random.py @@ -317,7 +317,7 @@ class Random(_random.Random): n = len(population) if not 0 <= k <= n: - raise ValueError, "sample larger than population" + raise ValueError("sample larger than population") random = self.random _int = int result = [None] * k |