diff options
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r-- | numpy/lib/npyio.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py index 9581cc1d9..ff8aa1349 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -1077,7 +1077,7 @@ def loadtxt(fname, dtype=float, comments='#', delimiter=None, fencoding = getattr(fname, 'encoding', 'latin1') except TypeError as e: raise TypeError( - f"fname must be a string, filehandle, list of strings, " + f"fname must be a string, filehandle, list of strings,\n" f"or generator. Got {type(fname)} instead." ) from e @@ -1803,7 +1803,7 @@ def genfromtxt(fname, dtype=float, comments='#', delimiter=None, fhd = iter(fid) except TypeError as e: raise TypeError( - f"fname must be a string, filehandle, list of strings, " + f"fname must be a string, filehandle, list of strings,\n" f"or generator. Got {type(fname)} instead." ) from e |