diff options
Diffstat (limited to 'numpy/core/defchararray.py')
-rw-r--r-- | numpy/core/defchararray.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index 9051df462..6b43d7f6f 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -300,7 +300,7 @@ def array(obj, itemsize=None, copy=True, unicode=False, fortran=False): if copy or (itemsize != obj.itemsize) \ or (not unicode and obj.dtype == unicode_) \ or (unicode and obj.dtype == string): - return obj.astype("%s%d" % (obj.dtypechar, itemsize)) + return obj.astype("%s%d" % (obj.dtype.char, itemsize)) else: return obj |