Commit 22d8f7b9 authored by Raymond Hettinger's avatar Raymond Hettinger

Minor code cleanup.

parent d021f72a
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment