diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 15:01:52 -0600 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2011-04-05 17:38:00 -0600 |
commit | cfd766456368777bcb0d5edabd360b3aeb02d3f8 (patch) | |
tree | b38cd1bf7520faba8e2c0268e85253df7fe1f23f /numpy/oldnumeric/random_array.py | |
parent | a4100ba6c440bdf2a2b3cfc31995eb5e009846ee (diff) | |
download | numpy-cfd766456368777bcb0d5edabd360b3aeb02d3f8.tar.gz |
STY: Update exception style, easy ones.
Diffstat (limited to 'numpy/oldnumeric/random_array.py')
-rw-r--r-- | numpy/oldnumeric/random_array.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/oldnumeric/random_array.py b/numpy/oldnumeric/random_array.py index e84aedf1e..ffae79616 100644 --- a/numpy/oldnumeric/random_array.py +++ b/numpy/oldnumeric/random_array.py @@ -41,12 +41,12 @@ def randint(minimum, maximum=None, shape=[]): """randint(min, max, shape=[]) = random integers >=min, < max If max not given, random integers >= 0, <min""" if not isinstance(minimum, int): - raise ArgumentError, "randint requires first argument integer" + raise ArgumentError("randint requires first argument integer") if maximum is None: maximum = minimum minimum = 0 if not isinstance(maximum, int): - raise ArgumentError, "randint requires second argument integer" + raise ArgumentError("randint requires second argument integer") a = ((maximum-minimum)* random(shape)) if isinstance(a, np.ndarray): return minimum + a.astype(np.int) |