From 550fd5d7994b9536fa9807957dbcb19e87c4d1e9 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Sun, 30 Jun 2002 04:43:20 +0000 Subject: Fixed bug 574978 shutil example out of sync with source code --- Doc/lib/libshutil.tex | 3 +-- 1 file changed, 1 insertion(+), 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} -- cgit v0.12