Commit 24da4770 authored by Fred Drake's avatar Fred Drake

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

for that.
parent 312a5dc5
...@@ -99,9 +99,10 @@ def main(): ...@@ -99,9 +99,10 @@ def main():
else: else:
run("cvs -Q -d%s checkout -d Doc python/dist/src/Doc" % cvsroot) run("cvs -Q -d%s checkout -d Doc python/dist/src/Doc" % cvsroot)
# remove CVS directories # remove CVS directories
for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS', for p in ('*/CVS', '*/*/CVS', '*/*/*/CVS'):
'.cvsignore', '*/.cvsignore'):
map(shutil.rmtree, glob.glob(p)) map(shutil.rmtree, glob.glob(p))
for f in ('.cvsignore', '*/.cvsignore'):
map(os.unlink, glob.glob(f))
LICENSE = os.path.normpath( LICENSE = os.path.normpath(
os.path.join(mydir, os.pardir, os.pardir, "LICENSE")) os.path.join(mydir, os.pardir, os.pardir, "LICENSE"))
shutil.copyfile(LICENSE, "Doc/LICENSE") shutil.copyfile(LICENSE, "Doc/LICENSE")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment