diff --git a/Lib/random.py b/Lib/random.py index 1ab75d57d8e..987cff16c4e 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