Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Further cleaned up the exception handling here to make sense on both
windows and non-windows, Python 2 and 3. On Python 3 EnvironmentError is an alias for OSError. On Python 2 WindowsError is a subclass of EnvironmentError. So this will correctly check the windows error, if it exists, in all cases. On Travis we also need to catch ENXIO on Linux, and for some reason EOPNOTSUPP on OSX.
- Loading branch information