2
0
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:
Thomas Nagy 2016-03-16 20:11:24 +01:00
parent 0970eb86cb
commit e19c0e7e77
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -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)