py3: catch specific OSError subclasses instead of checking errno
Contrary to the previous changesets in this series, this covers cases where errno was checked for multiple values. EACCES -> PermissionError ENOENT -> FileNotFoundError ENOTDIR -> NotADirectoryError EISDIR -> IsADirectoryError
parent
d54b213c
No related branches found
No related tags found
Showing
- mercurial/dirstate.py 5 additions, 8 deletionsmercurial/dirstate.py
- mercurial/fileset.py 8 additions, 11 deletionsmercurial/fileset.py
- mercurial/lock.py 2 additions, 3 deletionsmercurial/lock.py
- mercurial/posix.py 1 addition, 3 deletionsmercurial/posix.py
- setup.py 6 additions, 10 deletionssetup.py
Loading
Please register or sign in to comment