summaryrefslogtreecommitdiff
path: root/numpy/core/defchararray.py
diff options
context:
space:
mode:
authormdroe <mdroe@localhost>2009-10-14 17:02:10 +0000
committermdroe <mdroe@localhost>2009-10-14 17:02:10 +0000
commit1857cf27034c639a27044308c39211a811678054 (patch)
treec92cff42fcb7d739d71a798abd6043eabf9dd781 /numpy/core/defchararray.py
parentd12379c8934263554a5442c48f33e673710ef0e4 (diff)
downloadnumpy-1857cf27034c639a27044308c39211a811678054.tar.gz
Fix coercion of unicode object to chararray
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 ec1304e5a..52f6cb5de 100644
--- a/numpy/core/defchararray.py
+++ b/numpy/core/defchararray.py
@@ -2450,7 +2450,7 @@ def array(obj, itemsize=None, copy=True, unicode=None, order=None):
ucs4 = numpy.array(ucs2, 'u4')
obj = ucs4.data
else:
- obj = unicode(obj)
+ obj = _unicode(obj)
else:
# Let the default Unicode -> string encoding (if any) take
# precedence.