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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 05010a2d0..13eb5cefc 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -702,9 +702,9 @@ def _getconv(dtype):
elif issubclass(typ, np.complex):
return lambda x: complex(asstr(x))
elif issubclass(typ, np.bytes_):
- return bytes
+ return asbytes
else:
- return str
+ return asstr
def loadtxt(fname, dtype=float, comments='#', delimiter=None,