mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
Do not pass names of individual files to shutil.rmtree(); use os.unlink()
for that.
This commit is contained in:
parent
312a5dc539
commit
24da47708d
1 changed files with 3 additions and 2 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue