From: Raymond Hettinger Date: Wed, 18 May 2011 22:28:50 +0000 (-0500) Subject: Minor code cleanup. X-Git-Tag: v2.7.2rc1~31 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22d8f7b9b80cf4f89ad2c383e566f8fd1c6d5e52;p=python Minor code cleanup. --- diff --git a/Lib/random.py b/Lib/random.py index 1ab75d57d8..987cff16c4 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