diff options
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r-- | numpy/core/defchararray.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index 933b4d5ce..6f28b3d77 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -93,7 +93,7 @@ class chararray(ndarray): def __mul__(self, other): b = broadcast(self, other) arr = b.iters[1].base - if not issubclass(arr.dtype, integer): + if not issubclass(arr.dtype.type, integer): raise ValueError, "Can only multiply by integers" outitem = b.iters[0].base.itemsize * arr.max() result = chararray(b.shape, outitem, self.dtype is unicode_) @@ -105,7 +105,7 @@ class chararray(ndarray): def __rmul__(self, other): b = broadcast(self, other) arr = b.iters[1].base - if not issubclass(arr.dtype, integer): + if not issubclass(arr.dtype.type, integer): raise ValueError, "Can only multiply by integers" outitem = b.iters[0].base.itemsize * arr.max() result = chararray(b.shape, outitem, self.dtype is unicode_) |