-
-
Notifications
You must be signed in to change notification settings - Fork 11k
MAINT: refactor _savez #9510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MAINT: refactor _savez #9510
Conversation
That fails to flush buffers.
|
7641c26
to
3c43bd3
Compare
I moved the call to |
Needs rebase. Note that there are now two paths that need changing. EDiT: Oops, no, just the one. |
See also #6545. |
Note the
|
3c43bd3
to
4cd31a4
Compare
allow_pickle=allow_pickle, | ||
pickle_kwargs=pickle_kwargs) | ||
except IOError as exc: | ||
raise IOError("Failed to write to %s: %s" % (tmpfile, exc)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any policy on string interpolation while I'm cleaning up this part?
Is this still of interest? |
use context manager to open/close file handle.
95472b7
to
5c42d32
Compare
use context manager to open/close file handle.