diff options
author | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2021-10-07 14:29:40 +0200 |
---|---|---|
committer | Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> | 2023-02-10 00:06:49 +0100 |
commit | 75af40548eb85cfa25cb4074e9e4ebc5d5196b4e (patch) | |
tree | 9f5a39dd6cc62b66bb3753439003245960294350 /numpy/lib/npyio.py | |
parent | ac6e66b9b22adcf1d72750ccb8ffe70be87c3679 (diff) | |
download | numpy-75af40548eb85cfa25cb4074e9e4ebc5d5196b4e.tar.gz |
MAINT, DOC: string_ → bytes_ and unicode_ → str_
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 2 |
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 |