diff options
author | Blake Griffith <blake.a.griffith@gmail.com> | 2015-03-24 00:06:41 -0500 |
---|---|---|
committer | Blake Griffith <blake.a.griffith@gmail.com> | 2015-04-01 11:51:45 -0500 |
commit | 0b0c8035a4e2629cdb0fcafb2a59840f77ebec5c (patch) | |
tree | 8eec5afe350ee705304400d5631663689259add8 /numpy/lib/format.py | |
parent | e3101647ef7c262fa6b4ddc8fdf79453f8a1e05c (diff) | |
download | numpy-0b0c8035a4e2629cdb0fcafb2a59840f77ebec5c.tar.gz |
BUG: Make read_array_header_* return results
Previously read_array_header_1_0 & read_array_header_2_0 were not
returning the documented results.
Closes #5602
Diffstat (limited to 'numpy/lib/format.py')
-rw-r--r-- | numpy/lib/format.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/format.py b/numpy/lib/format.py index 1a2133aa9..4f96ff4bc 100644 --- a/numpy/lib/format.py +++ b/numpy/lib/format.py @@ -389,7 +389,7 @@ def read_array_header_1_0(fp): If the data is invalid. """ - _read_array_header(fp, version=(1, 0)) + return _read_array_header(fp, version=(1, 0)) def read_array_header_2_0(fp): """ @@ -422,7 +422,7 @@ def read_array_header_2_0(fp): If the data is invalid. """ - _read_array_header(fp, version=(2, 0)) + return _read_array_header(fp, version=(2, 0)) def _filter_header(s): |