summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 568195e18..b1f85f709 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -2319,7 +2319,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None,
column_types = [conv.type for conv in converters]
# Find the columns with strings...
strcolidx = [i for (i, v) in enumerate(column_types)
- if v == np.unicode_]
+ if v == np.str_]
if byte_converters and strcolidx:
# convert strings back to bytes for backward compatibility