From: Raymond Hettinger Date: Sun, 30 Jun 2002 04:44:29 +0000 (+0000) Subject: Fixed bug 574978 shutil example out of sync with source code X-Git-Tag: v2.2.2b1~288 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bca71c989e324c29c65d152ecb0ecb1543071bbd;p=thirdparty%2FPython%2Fcpython.git Fixed bug 574978 shutil example out of sync with source code --- diff --git a/Doc/lib/libshutil.tex b/Doc/lib/libshutil.tex index b675f2583d94..f41d4eb6800d 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}