Minor code cleanup.

This commit is contained in:
Raymond Hettinger 2011-05-18 17:28:50 -05:00
parent d021f72abf
commit 22d8f7b9b8
1 changed files with 1 additions and 1 deletions

View File

@ -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