From 5c68587ecc8aec46c15b17f414c3ccad9c1ecb2d Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Sun, 6 Dec 2009 12:17:44 +0000 Subject: 3K: core: make defchararray to import --- numpy/core/defchararray.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'numpy/core/defchararray.py') diff --git a/numpy/core/defchararray.py b/numpy/core/defchararray.py index 108eb7086..b7ad2230e 100644 --- a/numpy/core/defchararray.py +++ b/numpy/core/defchararray.py @@ -36,7 +36,10 @@ __all__ = ['chararray', 'array', 'asarray'] _globalvar = 0 -_unicode = unicode +if sys.version_info[0] >= 3: + _unicode = str +else: + _unicode = unicode _len = len def _use_unicode(*args): -- cgit v1.2.1