Do not pass names of individual files to shutil.rmtree(); use os.unlink()

for that.
This commit is contained in:
Fred Drake 2001-02-02 15:48:00 +00:00
parent 312a5dc539
commit 24da47708d
1 changed files with 3 additions and 2 deletions

View File

@ -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")