diff options
author | Ross Barnowski <rossbar@berkeley.edu> | 2022-01-10 12:31:16 -0800 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2022-01-14 20:07:07 -0600 |
commit | 2912231adb4b4b1a89a48277d352f9c93248282f (patch) | |
tree | d59e72c03746453dfcd7005261f143f38a4fdd1b /numpy/lib/npyio.py | |
parent | 942d4f8ab095f152f5e59e43cada49d3d15839d0 (diff) | |
download | numpy-2912231adb4b4b1a89a48277d352f9c93248282f.tar.gz |
Add tests for quote+multichar comments.
Also correct exception message.
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 ac71c5b0d..b5723dee5 100644 --- a/numpy/lib/npyio.py +++ b/numpy/lib/npyio.py @@ -960,8 +960,8 @@ def _read(fname, *, delimiter=',', comment='#', quote='"', if quote is not None: raise ValueError( "when multiple comments or a multi-character comment is " - "given, quotes are not supported. In this case the quote " - "character must be set to the empty string: `quote=''`.") + "given, quotes are not supported. In this case quotechar " + "must be set to None.") if len(imaginary_unit) != 1: raise ValueError('len(imaginary_unit) must be 1.') |