Mercurial > hg-stable
comparison mercurial/context.py @ 49318:050dc8730858
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
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Wed, 01 Jun 2022 00:47:25 +0200 |
parents | 2e726c934fcd |
children | ae61851e6fe2 c166b212bdee |
comparison
equal
deleted
inserted
replaced
49317:d54b213c4380 | 49318:050dc8730858 |
---|