diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
commit | 62ab10a05acdc8bb45549e4df6fd6fb5f4623aab (patch) | |
tree | aa9923e821b0171ac71d11f9e8414fc594fcb61c /Doc/library/shutil.rst | |
parent | 5d6fbe82078fe67437755bccfa504dbbcf909a74 (diff) | |
download | cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.zip cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.gz cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.bz2 |
Replace mentions of IOError
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r-- | Doc/library/shutil.rst | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst index d87e605..6cb03b8 100644 --- a/Doc/library/shutil.rst +++ b/Doc/library/shutil.rst @@ -51,11 +51,14 @@ Directory and files operations *dst* must be the complete target file name; look at :func:`copy` for a copy that accepts a target directory path. If *src* and *dst* are the same files, :exc:`Error` is raised. - The destination location must be writable; otherwise, an :exc:`IOError` exception + The destination location must be writable; otherwise, an :exc:`OSError` exception will be raised. If *dst* already exists, it will be replaced. Special files such as character or block devices and pipes cannot be copied with this function. *src* and *dst* are path names given as strings. + .. versionchanged:: 3.3 + :exc:`IOError` used to be raised instead of :exc:`OSError`. + .. function:: copymode(src, dst) |