mirror of
https://gitlab.com/ita1024/waf.git
synced 2024-11-29 13:30:32 +01:00
Minor optimization in Utils.h_list
This commit is contained in:
parent
b4437f3b51
commit
0ab704f5a4
@ -13,3 +13,7 @@ NEW IN WAF 1.9
|
||||
* Made lazy visual studio detection the default
|
||||
* Flags given in the form ${FOO}${BAR} will be merged in commands executed without a shell
|
||||
* Added Task.get_cwd()
|
||||
* Enabled pre-forked builds by default
|
||||
* Modified the build scheduler to enable a consistent progress bar
|
||||
* Reduced the memory footprint of Task objects
|
||||
|
||||
|
@ -547,9 +547,7 @@ def h_list(lst):
|
||||
:type lst: list of strings
|
||||
:return: hash of the list
|
||||
"""
|
||||
m = md5()
|
||||
m.update(str(lst).encode())
|
||||
return m.digest()
|
||||
return md5(repr(lst).encode()).digest()
|
||||
|
||||
def h_fun(fun):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user