Minor code cleanup.
This commit is contained in:
parent
d021f72abf
commit
22d8f7b9b8
|
@ -317,7 +317,7 @@ class Random(_random.Random):
|
||||||
|
|
||||||
n = len(population)
|
n = len(population)
|
||||||
if not 0 <= k <= n:
|
if not 0 <= k <= n:
|
||||||
raise ValueError, "sample larger than population"
|
raise ValueError("sample larger than population")
|
||||||
random = self.random
|
random = self.random
|
||||||
_int = int
|
_int = int
|
||||||
result = [None] * k
|
result = [None] * k
|
||||||
|
|
Loading…
Reference in New Issue