2
0
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:
Thomas Nagy 2016-02-29 18:40:44 +01:00
parent b4437f3b51
commit 0ab704f5a4
2 changed files with 5 additions and 3 deletions

View File

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

View File

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