mirror of https://gitlab.com/ita1024/waf.git
Remove Context.__hash__
This commit is contained in:
parent
ee0778a76f
commit
cf9330a371
|
@ -14,7 +14,7 @@ NEW IN WAF 1.9
|
|||
|
||||
* Performance highlights:
|
||||
- Reduce the key size in bld.task_sigs by adding bld.node_sigs and bld.imp_sigs
|
||||
- Remove __hash__ and __eq__ from Node and Task #1629
|
||||
- Remove __hash__ and __eq__ from Context, Node and Task #1629
|
||||
- Make lazy visual studio detection the default
|
||||
- Remove the uses of run_once that creates unfree-able memory
|
||||
- Enable a consistent progress bar output #1641
|
||||
|
|
|
@ -179,15 +179,6 @@ class Context(ctx):
|
|||
self.exec_dict = {'ctx':self, 'conf':self, 'bld':self, 'opt':self}
|
||||
self.logger = None
|
||||
|
||||
def __hash__(self):
|
||||
"""
|
||||
Return a hash value for storing context objects in dicts or sets. The value is not persistent.
|
||||
|
||||
:return: hash value
|
||||
:rtype: int
|
||||
"""
|
||||
return id(self)
|
||||
|
||||
def finalize(self):
|
||||
"""
|
||||
Use to free resources such as open files potentially held by the logger
|
||||
|
|
Loading…
Reference in New Issue