add some exception classes to shutil (#1334)

This commit is contained in:
Jelle Zijlstra
2017-05-26 09:30:20 -07:00
committed by Guido van Rossum
parent ac0b809bf5
commit d23fe74072

View File

@@ -80,9 +80,18 @@ if sys.version_info >= (3, 3):
def which(cmd: _Path, mode: int = ...,
path: Optional[_Path] = ...) -> Optional[str]: ...
class Error(Exception): ...
if sys.version_info >= (3, 4):
class Error(OSError): ...
class SameFileError(Error): ...
class SpecialFileError(OSError): ...
class ExecError(OSError): ...
class ReadError(OSError): ...
else:
class Error(EnvironmentError): ...
class SpecialFileError(EnvironmentError): ...
class ExecError(EnvironmentError): ...
class ReadError(EnvironmentError): ...
class RegistryError(Exception): ...
def make_archive(base_name: str, format: str, root_dir: _Path = ...,
base_dir: _Path = ..., verbose: bool = ...,