summaryrefslogtreecommitdiff
path: root/numpy/oldnumeric/random_array.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:10:31 -0600
committerCharles Harris <charlesr.harris@gmail.com>2011-04-05 17:38:00 -0600
commitfd2630366581049af6c9acc4b41315363b47b55a (patch)
tree8e17cdee3bfb7c9f1c30d793d1ce0267f1016e22 /numpy/oldnumeric/random_array.py
parentb2793ea74ea05bc64288287dd2efbe0dcae99534 (diff)
downloadnumpy-fd2630366581049af6c9acc4b41315363b47b55a.tar.gz
STY: Fix up some remaining old-style exceptions.
I think that is the end of it.
Diffstat (limited to 'numpy/oldnumeric/random_array.py')
-rw-r--r--numpy/oldnumeric/random_array.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/numpy/oldnumeric/random_array.py b/numpy/oldnumeric/random_array.py
index ffae79616..777e2a645 100644
--- a/numpy/oldnumeric/random_array.py
+++ b/numpy/oldnumeric/random_array.py
@@ -19,10 +19,10 @@ def seed(x=0, y=0):
mt.seed((x,y))
def get_seed():
- raise NotImplementedError, \
- "If you want to save the state of the random number generator.\n"\
- "Then you should use obj = numpy.random.get_state() followed by.\n"\
- "numpy.random.set_state(obj)."
+ raise NotImplementedError(
+ "If you want to save the state of the random number generator.\n"
+ "Then you should use obj = numpy.random.get_state() followed by.\n"
+ "numpy.random.set_state(obj).")
def random(shape=[]):
"random(n) or random([n, m, ...]) returns array of random numbers"