Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extmod/vfs_posix_file: Ensure file object has safe default fd.
With this commit, if file open fails, the object will have fd = -1 (closed) and the finaliser will not attempt to close anything. Fixes issue micropython#13672. Signed-off-by: Andrew Leech <[email protected]>
- Loading branch information