diff options
| author | Raymond Hettinger <python@rcn.com> | 2011-05-18 22:28:50 (GMT) |
|---|---|---|
| committer | Raymond Hettinger <python@rcn.com> | 2011-05-18 22:28:50 (GMT) |
| commit | 22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52 (patch) | |
| tree | 755a9681bfff3267ad4722ebde3ee3f1e6f9d435 /Lib/random.py | |
| parent | d021f72abfbff732fdb25da7965fe0316a86c3b3 (diff) | |
| download | cpython-22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52.zip cpython-22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52.tar.gz cpython-22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52.tar.bz2 | |
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 1ab75d5..987cff1 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 |
