summaryrefslogtreecommitdiff
path: root/numpy/lib/format.py
diff options
context:
space:
mode:
authorElisha Hollander <just4now666666@gmail.com>2021-07-07 13:41:08 +0300
committerGitHub <noreply@github.com>2021-07-07 13:41:08 +0300
commitd785aa39f99720950cd7f9acfe1133494cb5ff58 (patch)
tree8f78de6090ff688d0da26dc99eef47a5a26c607b /numpy/lib/format.py
parent3d83143c2c2f877ee921c4c7c6746d836c459839 (diff)
downloadnumpy-d785aa39f99720950cd7f9acfe1133494cb5ff58.tar.gz
MAINT: Remove unused imports and unreachable code (#18762)
* Remove unnecessary imports and minor fixes
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r--numpy/lib/format.py2
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