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
1 changed files with 2 additions and 2 deletions

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)