summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libshutil.tex
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-06-30 04:43:20 (GMT)
committerRaymond Hettinger <python@rcn.com>2002-06-30 04:43:20 (GMT)
commit550fd5d7994b9536fa9807957dbcb19e87c4d1e9 (patch)
tree506cf6b7082663124692ba6f0878f253678e7c8f /Doc/lib/libshutil.tex
parent8a9e8b6d0e3c9c374645887602fc0186d70304d2 (diff)
downloadcpython-550fd5d7994b9536fa9807957dbcb19e87c4d1e9.zip
cpython-550fd5d7994b9536fa9807957dbcb19e87c4d1e9.tar.gz
cpython-550fd5d7994b9536fa9807957dbcb19e87c4d1e9.tar.bz2
Fixed bug 574978 shutil example out of sync with source code
Diffstat (limited to 'Doc/lib/libshutil.tex')
-rw-r--r--Doc/lib/libshutil.tex3
1 files changed, 1 insertions, 2 deletions
diff --git a/Doc/lib/libshutil.tex b/Doc/lib/libshutil.tex
index b675f25..f41d4eb 100644
--- a/Doc/lib/libshutil.tex
+++ b/Doc/lib/libshutil.tex
@@ -112,10 +112,9 @@ def copytree(src, dst, symlinks=0):
linkto = os.readlink(srcname)
os.symlink(linkto, dstname)
elif os.path.isdir(srcname):
- copytree(srcname, dstname)
+ copytree(srcname, dstname, symlinks)
else:
copy2(srcname, dstname)
- # XXX What about devices, sockets etc.?
except (IOError, os.error), why:
print "Can't copy %s to %s: %s" % (`srcname`, `dstname`, str(why))
\end{verbatim}