From 158bc72e8e2161cfa7401299dcd65cff0b485a9a Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 14 May 2016 11:29:06 +0200 Subject: [PATCH] Remove the old shutil.copy override on Windows --- waflib/Utils.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/waflib/Utils.py b/waflib/Utils.py index ff075351..075af103 100644 --- a/waflib/Utils.py +++ b/waflib/Utils.py @@ -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