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 80822328c..39492b421 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -47,7 +47,7 @@ class chararray(ndarray): if isinstance(val, (string_, unicode_)): temp = val.rstrip() if len(temp) == 0: - val = val[0] + val = '' else: val = temp return val |