From 24da47708d43c096999c097876f27aeaa09a592b Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 2 Feb 2001 15:48:00 +0000 Subject: Do not pass names of individual files to shutil.rmtree(); use os.unlink() for that. --- Doc/tools/mksourcepkg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Doc/tools/mksourcepkg b/Doc/tools/mksourcepkg index c7ca188..c3ea863 100755 --- a/Doc/tools/mksourcepkg +++ b/Doc/tools/mksourcepkg @@ -99,9 +99,10 @@ def main(): else: run("cvs -Q -d%s checkout -d Doc python/dist/src/Doc" % cvsroot) # remove CVS directories - for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS', - '.cvsignore', '*/.cvsignore'): + for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS'): map(shutil.rmtree, glob.glob(p)) + for f in ('.cvsignore', '*/.cvsignore'): + map(os.unlink, glob.glob(f)) LICENSE = os.path.normpath( os.path.join(mydir, os.pardir, os.pardir, "LICENSE")) shutil.copyfile(LICENSE, "Doc/LICENSE") -- cgit v0.12