diff options
Diffstat (limited to 'numpy/ma/extras.py')
-rw-r--r-- | numpy/ma/extras.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/ma/extras.py b/numpy/ma/extras.py index c5b3a3957..3133b168b 100644 --- a/numpy/ma/extras.py +++ b/numpy/ma/extras.py @@ -1865,9 +1865,9 @@ def polyfit(x, y, deg, rcond=None, full=False, w=None, cov=False): if w is not None: w = asarray(w) if w.ndim != 1: - raise TypeError, "expected a 1-d array for weights" + raise TypeError("expected a 1-d array for weights") if w.shape[0] != y.shape[0] : - raise TypeError, "expected w and y to have the same length" + raise TypeError("expected w and y to have the same length") m = mask_or(m, getmask(w)) if m is not nomask: |