[Python-checkins] cpython (2.7): Minor code cleanup.

raymond.hettinger python-checkins at python.org
Thu May 19 00:28:58 CEST 2011


http://hg.python.org/cpython/rev/828e29cee88e
changeset:   70193:828e29cee88e
branch:      2.7
parent:      70182:31cd146d725c
user:        Raymond Hettinger <python at rcn.com>
date:        Wed May 18 17:28:50 2011 -0500
summary:
  Minor code cleanup.

files:
  Lib/random.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/random.py b/Lib/random.py
--- a/Lib/random.py
+++ b/Lib/random.py
@@ -317,7 +317,7 @@
 
         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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list