This commit is contained in:
Georg Brandl 2009-07-13 18:41:20 +02:00
parent db8395f9e1
commit 51a78a9b88

View File

@ -396,8 +396,10 @@ def movefile(source, dest):
def copyfile(source, dest):
"""Copy a file and its modification times, if possible."""
shutil.copyfile(source, dest)
try: shutil.copystat(source, dest)
except shutil.Error: pass
try:
shutil.copystat(source, dest)
except shutil.Error:
pass
def copy_static_entry(source, target, builder, context={}):