From 22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 18 May 2011 17:28:50 -0500 Subject: [PATCH] Minor code cleanup. --- Lib/random.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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