diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 15:08:23 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 17:38:00 -0600 |
commit | e1a9692cc36e4353798a332c834fce7aa6cf9b54 (patch) | |
tree | fc499f8768c8d2d99c64547cd1a0b7ae7e6018be /numpy/core/numeric.py | |
parent | cfd766456368777bcb0d5edabd360b3aeb02d3f8 (diff) | |
download | numpy-e1a9692cc36e4353798a332c834fce7aa6cf9b54.tar.gz |
STY: Update exception styles, trickier ones.
Diffstat (limited to 'numpy/core/numeric.py')
-rw-r--r-- | numpy/core/numeric.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/core/numeric.py b/numpy/core/numeric.py index 6891ea768..28c3cffd7 100644 --- a/numpy/core/numeric.py +++ b/numpy/core/numeric.py @@ -2179,11 +2179,11 @@ def setbufsize(size): """ if size > 10e6: - raise ValueError, "Buffer size, %s, is too big." % size + raise ValueError("Buffer size, %s, is too big." % size) if size < 5: - raise ValueError, "Buffer size, %s, is too small." %size + raise ValueError("Buffer size, %s, is too small." %size) if size % 16 != 0: - raise ValueError, "Buffer size, %s, is not a multiple of 16." %size + raise ValueError("Buffer size, %s, is not a multiple of 16." %size) pyvals = umath.geterrobj() old = getbufsize() |