summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-01-17 12:01:48 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-01-17 12:01:48 +0000
commit76761ff119acab82da016358d13b8e4bb4c6c34d (patch)
tree95cfda8e8caf15e1d56a0a700c6ae953edfced2c /numpy/core/defchararray.py
parente92c9c4400da1024053666b62e2e20bd312a937c (diff)
downloadnumpy-76761ff119acab82da016358d13b8e4bb4c6c34d.tar.gz
Fixed dotblas for zero-size arrays.
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r--numpy/core/defchararray.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py
index 70096441c..6300eb92e 100644
--- a/numpy/core/defchararray.py
+++ b/numpy/core/defchararray.py
@@ -36,7 +36,7 @@ class chararray(ndarray):
return self
def __array_finalize__(self, obj):
- if not _globalvar and self.dtype not in [string, unicode_]:
+ if not _globalvar and self.dtype.char not in 'SU':
raise ValueError, "Can only create a chararray from string data."