summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorStefan van der Walt <stefan@sun.ac.za>2009-03-02 21:11:31 +0000
committerStefan van der Walt <stefan@sun.ac.za>2009-03-02 21:11:31 +0000
commit7170d0a8b85ee38da227c2db26f470750b6e1509 (patch)
tree0b11d022213b76cfcc16e7f10184c3727b7c8dea /numpy/lib/function_base.py
parent553a30079c37ebecf8a37b9ee1fbf219d1d09053 (diff)
downloadnumpy-7170d0a8b85ee38da227c2db26f470750b6e1509.tar.gz
Python 3000 fixes for 2to3 [patch by James Watson].
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 283e3faff..c6731a945 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -546,7 +546,7 @@ def histogramdd(sample, bins=10, range=None, normed=False, weights=None):
hist /= s
if (hist.shape != nbin-2).any():
- raise 'Internal Shape Error'
+ raise RuntimeError('Internal Shape Error')
return hist, edges