summaryrefslogtreecommitdiff
path: root/numpy/lib/format.py
diff options
context:
space:
mode:
authorBlake Griffith <blake.a.griffith@gmail.com>2015-03-24 00:06:41 -0500
committerBlake Griffith <blake.a.griffith@gmail.com>2015-04-01 11:51:45 -0500
commit0b0c8035a4e2629cdb0fcafb2a59840f77ebec5c (patch)
tree8eec5afe350ee705304400d5631663689259add8 /numpy/lib/format.py
parente3101647ef7c262fa6b4ddc8fdf79453f8a1e05c (diff)
downloadnumpy-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.py4
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):