2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-11-22 09:57:15 +01:00

Apidocs fixes

This commit is contained in:
Thomas Nagy 2017-01-05 13:16:46 +01:00
parent fa145ed653
commit 8e19e3e714
No known key found for this signature in database
GPG Key ID: 49B4C67C05277AAA
2 changed files with 4 additions and 5 deletions

View File

@ -1,6 +1,7 @@
NEW IN WAF 2.0.0 NEW IN WAF 2.0.0
---------------- ----------------
* Keep sorted lists in TaskGen.prec[] * Reverse the mappping in TaskGen.prec[]
* Sort TaskGen methods besides regular constraints
* Removed ut_fun from waf_unit_test.py * Removed ut_fun from waf_unit_test.py
* Force files into the build directory by default * Force files into the build directory by default

View File

@ -98,8 +98,7 @@ def before(*k):
exclude_taskgen.append(func.__name__) exclude_taskgen.append(func.__name__)
setattr(task_gen, func.__name__, func) setattr(task_gen, func.__name__, func)
for fun_name in k: for fun_name in k:
if not func.__name__ in task_gen.prec[fun_name]: task_gen.prec[func.__name__].add(fun_name)
task_gen.prec[fun_name].append(func.__name__)
fix_fun_doc(func) fix_fun_doc(func)
append_doc(func, 'before', k) append_doc(func, 'before', k)
return func return func
@ -112,8 +111,7 @@ def after(*k):
exclude_taskgen.append(func.__name__) exclude_taskgen.append(func.__name__)
setattr(task_gen, func.__name__, func) setattr(task_gen, func.__name__, func)
for fun_name in k: for fun_name in k:
if not fun_name in task_gen.prec[func.__name__]: task_gen.prec[fun_name].add(func.__name__)
task_gen.prec[func.__name__].append(fun_name)
fix_fun_doc(func) fix_fun_doc(func)
append_doc(func, 'after', k) append_doc(func, 'after', k)
return func return func