8000 BUG: Fix regression in np.ma.load in gh-10055 · numpy/numpy@8671dc0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8671dc0

Browse files
committed
BUG: Fix regression in np.ma.load in gh-10055
1 parent 5f01e54 commit 8671dc0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

numpy/ma/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7918,9 +7918,9 @@ def load(F):
79187918
"""
79197919
if not hasattr(F, 'readline'):
79207920
with open(F, 'r') as F:
7921-
pickle.load(F)
7921+
return pickle.load(F)
79227922
else:
7923-
pickle.load(F)
7923+
return pickle.load(F)
79247924

79257925

79267926
def loads(strg):

0 commit comments

Comments
 (0)
0