mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-26 03:39:53 +01:00
Remove the old shutil.copy override on Windows
This commit is contained in:
parent
12c7609802
commit
158bc72e8e
@ -115,6 +115,7 @@ class lru_node(object):
|
||||
|
||||
class lru_cache(object):
|
||||
"""A simple least-recently used cache that suits our purposes"""
|
||||
__slots__ = ('maxlen', 'table', 'head')
|
||||
def __init__(self, maxlen=100):
|
||||
self.maxlen = maxlen
|
||||
self.table = {}
|
||||
@ -713,17 +714,6 @@ class Timer(object):
|
||||
result += '%dm' % minutes
|
||||
return '%s%.3fs' % (result, seconds)
|
||||
|
||||
if is_win32:
|
||||
old = shutil.copy2
|
||||
def copy2(src, dst):
|
||||
"""
|
||||
shutil.copy2 does not copy the file attributes on windows, so we
|
||||
hack into the shutil module to fix the problem
|
||||
"""
|
||||
old(src, dst)
|
||||
shutil.copystat(src, dst)
|
||||
setattr(shutil, 'copy2', copy2)
|
||||
|
||||
def read_la_file(path):
|
||||
"""
|
||||
Read property files, used by msvc.py
|
||||
|
Loading…
Reference in New Issue
Block a user