diff options
author | slepton <slepton@posteo.de> | 2021-07-07 20:00:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 20:00:48 +0200 |
commit | de245cd133699f8c23f97ec07ec29703e37a5923 (patch) | |
tree | d1b485e30de04e078aa86f9e5f3466744fa505b9 /numpy/lib/format.py | |
parent | 87db3d1ae9a16edabd8f4818307616d8182d2a12 (diff) | |
parent | 068074f4acab87b0fabf194517b7dfb0f038af5a (diff) | |
download | numpy-de245cd133699f8c23f97ec07ec29703e37a5923.tar.gz |
Merge branch 'numpy:main' into main
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r-- | numpy/lib/format.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py index 9b8f90dbd..6ac66c22a 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -606,7 +606,7 @@ def _read_array_header(fp, version): if EXPECTED_KEYS != d.keys(): keys = sorted(d.keys()) msg = "Header does not contain the correct keys: {!r}" - raise ValueError(msg.format(d.keys())) + raise ValueError(msg.format(keys)) # Sanity-check the values. if (not isinstance(d['shape'], tuple) or |