From: Raymond Hettinger Date: Sun, 30 Jun 2002 04:43:20 +0000 (+0000) Subject: Fixed bug 574978 shutil example out of sync with source code X-Git-Tag: v2.3c1~5156 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=550fd5d7994b9536fa9807957dbcb19e87c4d1e9;p=python Fixed bug 574978 shutil example out of sync with source code --- diff --git a/Doc/lib/libshutil.tex b/Doc/lib/libshutil.tex index b675f2583d..f41d4eb680 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}