From 71042452c743da9d12f533d406f47d7a8d9bfedd Mon Sep 17 00:00:00 2001 From: paavoap Date: Mon, 10 Oct 2016 23:07:54 +0800 Subject: [PATCH] Add stub for SameFileError. (#594) --- stdlib/3/shutil.pyi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/stdlib/3/shutil.pyi b/stdlib/3/shutil.pyi index 746542c18..13075979a 100644 --- a/stdlib/3/shutil.pyi +++ b/stdlib/3/shutil.pyi @@ -1,4 +1,5 @@ # Stubs for shutil +import sys # Based on http://docs.python.org/3.2/library/shutil.html @@ -27,6 +28,8 @@ def rmtree(path: str, ignore_errors: bool = ..., def move(src: str, dst: str) -> None: ... class Error(Exception): ... +if sys.version_info >= (3, 4): + class SameFileError(Error): ... def make_archive(base_name: str, format: str, root_dir: str = ..., base_dir: str = ..., verbose: bool = ...,