summaryrefslogtreecommitdiffstats
path: root/Doc/library/shutil.rst
diff options
context:
space:
mode:
authorAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-15 20:59:24 (GMT)
committerAndrew Svetlov <andrew.svetlov@gmail.com>2012-12-15 20:59:24 (GMT)
commit618c2e13ca410f342bb057e62e24478b585744aa (patch)
treec0a90d69c1ff1e06a2a3602f306e7717cdab3125 /Doc/library/shutil.rst
parent18d105b824ce55afacf18a9e2a8fee6ea62b2e54 (diff)
downloadcpython-618c2e13ca410f342bb057e62e24478b585744aa.zip
cpython-618c2e13ca410f342bb057e62e24478b585744aa.tar.gz
cpython-618c2e13ca410f342bb057e62e24478b585744aa.tar.bz2
Use OSError instead of os.error in the docs.
Diffstat (limited to 'Doc/library/shutil.rst')
-rw-r--r--Doc/library/shutil.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/shutil.rst b/Doc/library/shutil.rst
index 080c923..e962112 100644
--- a/Doc/library/shutil.rst
+++ b/Doc/library/shutil.rst
@@ -372,7 +372,7 @@ provided by this module. ::
else:
copy2(srcname, dstname)
# XXX What about devices, sockets etc.?
- except (IOError, os.error) as why:
+ except OSError as why:
errors.append((srcname, dstname, str(why)))
# catch the Error from the recursive copytree so that we can
# continue with other files