summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-12-09 20:00:27 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-12-09 20:00:27 +0000
commit6d8631d90dc03603ce7c0482ccdb16bf3a88d4d3 (patch)
tree83a57fb1a7af6d9251a9b37f297defa225873de0 /numpy/core/defchararray.py
parentdb487c204c9df0472642d14d80632382463ecbcc (diff)
downloadnumpy-6d8631d90dc03603ce7c0482ccdb16bf3a88d4d3.tar.gz
Fix shuffle and chararray printing for empty strings.
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 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