diff options
author | Fred Drake <fdrake@acm.org> | 2001-02-02 15:48:00 (GMT) |
---|---|---|
committer | Fred Drake <fdrake@acm.org> | 2001-02-02 15:48:00 (GMT) |
commit | 24da47708d43c096999c097876f27aeaa09a592b (patch) | |
tree | f1d08dbcaacc12c4dc46121372a997acacd8d113 | |
parent | 312a5dc539b583abcbbf006942a4ceead9b9172b (diff) | |
download | cpython-24da47708d43c096999c097876f27aeaa09a592b.zip cpython-24da47708d43c096999c097876f27aeaa09a592b.tar.gz cpython-24da47708d43c096999c097876f27aeaa09a592b.tar.bz2 |
Do not pass names of individual files to shutil.rmtree(); use os.unlink()
for that.
-rwxr-xr-x | Doc/tools/mksourcepkg | 5 |
1 files 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") |