Kaydet (Commit) 22d8f7b9 authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Minor code cleanup.

üst d021f72a
...@@ -317,7 +317,7 @@ class Random(_random.Random): ...@@ -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
......
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