mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-23 02:16:01 +01:00
Simplification, no need to use item ids anymore
This commit is contained in:
parent
0970eb86cb
commit
e19c0e7e77
@ -94,10 +94,10 @@ class task_gen(object):
|
||||
|
||||
# provide a unique id
|
||||
try:
|
||||
self.idx = self.bld.idx[id(self.path)] = self.bld.idx.get(id(self.path), 0) + 1
|
||||
self.idx = self.bld.idx[self.path] = self.bld.idx.get(self.path, 0) + 1
|
||||
except AttributeError:
|
||||
self.bld.idx = {}
|
||||
self.idx = self.bld.idx[id(self.path)] = 1
|
||||
self.idx = self.bld.idx[self.path] = 1
|
||||
|
||||
for key, val in kw.items():
|
||||
setattr(self, key, val)
|
||||
|
Loading…
Reference in New Issue
Block a user