[2.7] bpo-30265: support.unlink() don't catch any OSError by vstinner · Pull Request #1456 · python/cpython
Copy link Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe invert the condition?
if exc.errno not in (errno.ENOENT, errno.ENOTDIR):
raise
Copy link Copy Markdown
Member Author
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done