Remove Context.__hash__

This commit is contained in:
Thomas Nagy 2016-04-01 23:27:46 +02:00
parent ee0778a76f
commit cf9330a371
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 1 additions and 10 deletions

View File

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

View File

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