]> granicus.if.org Git - python/commitdiff
Fixed bug 574978 shutil example out of sync with source code
authorRaymond Hettinger <python@rcn.com>
Sun, 30 Jun 2002 04:43:20 +0000 (04:43 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 30 Jun 2002 04:43:20 +0000 (04:43 +0000)
Doc/lib/libshutil.tex

index b675f2583d9430f0ac08ef4f99ea4bb9ee8b7906..f41d4eb6800d72d64916bfa8e777384c2b53e81b 100644 (file)
@@ -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}