diff options
author | slepton <slepton@posteo.de> | 2021-07-07 21:25:53 +0200 |
---|---|---|
committer | slepton <slepton@posteo.de> | 2021-07-07 21:25:53 +0200 |
commit | d19584547a7934bfce9dee445e65a2c1994cecdc (patch) | |
tree | 2013779442bff7d9f47464fd3a1b6ba755b0070d /numpy/lib/format.py | |
parent | 5ac75798362cea6ecbd602a46b80c297b0f6712a (diff) | |
parent | de245cd133699f8c23f97ec07ec29703e37a5923 (diff) | |
download | numpy-d19584547a7934bfce9dee445e65a2c1994cecdc.tar.gz |
Merge remote-tracking branch 'origin/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 |