Bump shutil to 3.14 (#14134)

This commit is contained in:
Semyon Moroz
2025-05-25 16:42:10 +00:00
committed by GitHub
parent a9e7afa7be
commit 9810d95a28
2 changed files with 9 additions and 3 deletions
@@ -51,7 +51,6 @@ multiprocessing.managers._BaseDictProxy.__ror__
multiprocessing.managers._BaseDictProxy.fromkeys
multiprocessing.process.BaseProcess.interrupt
multiprocessing.synchronize.SemLock.locked
shutil.__all__
string.Template.flags
tarfile.TarFile.zstopen
tkinter.Event.__class_getitem__
+9 -2
View File
@@ -18,7 +18,6 @@ __all__ = [
"rmtree",
"Error",
"SpecialFileError",
"ExecError",
"make_archive",
"get_archive_formats",
"register_archive_format",
@@ -34,6 +33,8 @@ __all__ = [
"SameFileError",
"disk_usage",
]
if sys.version_info < (3, 14):
__all__ += ["ExecError"]
_StrOrBytesPathT = TypeVar("_StrOrBytesPathT", bound=StrOrBytesPath)
_StrPathT = TypeVar("_StrPathT", bound=StrPath)
@@ -42,7 +43,13 @@ _BytesPathT = TypeVar("_BytesPathT", bound=BytesPath)
class Error(OSError): ...
class SameFileError(Error): ...
class SpecialFileError(OSError): ...
class ExecError(OSError): ...
if sys.version_info >= (3, 14):
ExecError = RuntimeError # Deprecated in Python 3.14; removal scheduled for Python 3.16
else:
class ExecError(OSError): ...
class ReadError(OSError): ...
class RegistryError(Exception): ...