From 6d8631d90dc03603ce7c0482ccdb16bf3a88d4d3 Mon Sep 17 00:00:00 2001 From: Travis Oliphant Date: Sat, 9 Dec 2006 20:00:27 +0000 Subject: Fix shuffle and chararray printing for empty strings. --- numpy/core/defchararray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'numpy/core/defchararray.py') 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 -- cgit v1.2.1