-
Notifications
You must be signed in to change notification settings - Fork 291
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
Any support for FileNotFoundError? #254
Comments
Thanks for the request, Wim. This sounds like a good feature to have.
Are you able to contribute a patch that defines `FileNotFoundError` in `src/future/builtins/__init__.py`? This would speed up the process of getting it supported. :-)
|
I have committed a patch to a new development branch called
at the top of modules that invoke those exceptions. Could you please try the new branch and report back about how well this works for you? |
Hi Ed, yes, I tried it and it seems to work fine:
|
@edschofield Are these going to make it into a release any time soon? Shall I close this issue? Thanks! |
Use IOError instead of FileNotFoundError for python2 support
I believe this is included in 0.17 |
In Python 3.3+ we can handle missing files easily:
In Python 2 there is a bit more song and dance:
Does this library allow us to write the simpler Python 3 style file handling in Python 2, somehow? If not, are there any plans to get
FileNotFoundError
into python-future, or is it too difficult to implement?Thanks!
The text was updated successfully, but these errors were encountered: