1
0
Fork 0

Adding upstream version 3.8.0.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 21:50:56 +01:00
parent d24c1558a4
commit 0de0fde28c
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
7 changed files with 180 additions and 49 deletions

View file

@ -205,7 +205,7 @@ else: # pragma: no cover
def _handle_readonly(
func: Callable[[str], object],
path: str,
exc: Exception,
exc: BaseException,
) -> None:
if (
func in (os.rmdir, os.remove, os.unlink) and
@ -223,7 +223,7 @@ if sys.version_info < (3, 12): # pragma: <3.12 cover
def _handle_readonly_old(
func: Callable[[str], object],
path: str,
excinfo: tuple[type[Exception], Exception, TracebackType],
excinfo: tuple[type[BaseException], BaseException, TracebackType],
) -> None:
return _handle_readonly(func, path, excinfo[1])