From b2793ea74ea05bc64288287dd2efbe0dcae99534 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Tue, 5 Apr 2011 16:10:44 -0600 Subject: STY: Fix up some two line old-style exceptions. --- numpy/oldnumeric/mlab.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'numpy/oldnumeric/mlab.py') diff --git a/numpy/oldnumeric/mlab.py b/numpy/oldnumeric/mlab.py index e2a0262f0..2c84b6960 100644 --- a/numpy/oldnumeric/mlab.py +++ b/numpy/oldnumeric/mlab.py @@ -80,8 +80,7 @@ def cov(m, y=None, rowvar=0, bias=0): y = transpose(y) N = m.shape[0] if (y.shape[0] != N): - raise ValueError, "x and y must have the same number "\ - "of observations" + raise ValueError("x and y must have the same number of observations") m = m - _Nmean(m,axis=0) y = y - _Nmean(y,axis=0) if bias: -- cgit v1.2.1