summaryrefslogtreecommitdiffstats
path: root/SCons/Executor.py
diff options
context:
space:
mode:
authorMats Wichmann <mats@linux.com>2021-05-03 20:59:08 (GMT)
committerMats Wichmann <mats@linux.com>2021-05-03 21:00:29 (GMT)
commit6df6df2570b2371d8508475ff427976972f889b5 (patch)
tree851356a6d2fd94be41cbde6b7678c2775043d90c /SCons/Executor.py
parent61cda1dfd8114a61d529a57ef37f2fc0d757a750 (diff)
downloadSCons-6df6df2570b2371d8508475ff427976972f889b5.zip
SCons-6df6df2570b2371d8508475ff427976972f889b5.tar.gz
SCons-6df6df2570b2371d8508475ff427976972f889b5.tar.bz2
Some code modernizatoion
Remove obsolete __getslice__ and __setslice_ definitions add Node.fs.scandir to call new (Py3.5) os.scandir Node.fs.makedirs now passes the exist_ok flag Cachedir creation now uses this fs.makedirs with exist_ok=True Signed-off-by: Mats Wichmann <mats@linux.com>
Diffstat (limited to 'SCons/Executor.py')
-rw-r--r--SCons/Executor.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/SCons/Executor.py b/SCons/Executor.py
index 005906f..ee52151 100644
--- a/SCons/Executor.py
+++ b/SCons/Executor.py
@@ -63,10 +63,6 @@ class TSList(collections.UserList):
def __getitem__(self, i):
nl = self.func()
return nl[i]
- def __getslice__(self, i, j):
- nl = self.func()
- i, j = max(i, 0), max(j, 0)
- return nl[i:j]
def __str__(self):
nl = self.func()
return str(nl)