diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2013-02-28 17:23:13 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2013-03-01 08:35:12 -0700 |
commit | 3655b732bd08022dab8498b44191d6c4049bc7a8 (patch) | |
tree | a2a2210d560d5696e47a5dcf5d969faa8d21ad79 /numpy/ma/extras.py | |
parent | d1e692d70da7532b02d752d0842987333bd76c70 (diff) | |
download | numpy-3655b732bd08022dab8498b44191d6c4049bc7a8.tar.gz |
2to3: Apply `raise` fixes. Closes #3077.
Replaces the
raise Exception, msg:
form with
raise Exception(msg):
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: |