diff --git a/DEVEL b/DEVEL index 13736285..1adbcc16 100644 --- a/DEVEL +++ b/DEVEL @@ -1,4 +1,4 @@ -Waf 1.8 is on https://github.com/waf-project/waf +Waf 1.9 is on https://github.com/waf-project/waf ------------------------------------------------ waflib the core library @@ -22,7 +22,7 @@ Coding guidelines ----------------- * We use tabs, no spaces -* Do not use x.split("\n") but x.splitlines() -* Do not catch all exceptions unless you have a good reason to do so (no "except:") +* Use x.splitlines() instead of x.split('\n') +* No "except:" and and no "except Exception:" unless there is a very good reason * File handles are too easy to get wrong, use Node.readf/Node.writef/Utils.readf/Utils.writef diff --git a/docs/book/tasks.txt b/docs/book/tasks.txt index c4ddd6dd..c604d785 100644 --- a/docs/book/tasks.txt +++ b/docs/book/tasks.txt @@ -170,10 +170,10 @@ The attributes _before_ and _after_ are used to declare ordering constraints bet [source,python] --------------- -from waflib.Task import TaskBase -class task_test_a(TaskBase): +from waflib.Task import Task +class task_test_a(Task): before = ['task_test_b'] -class task_test_b(TaskBase): +class task_test_b(Task): after = ['task_test_a'] --------------- @@ -183,10 +183,10 @@ Another way to force the order is by declaring lists of abstract symbols on the [source,python] --------------- -from waflib.Task import TaskBase -class task_test_a(TaskBase): +from waflib.Task import Task +class task_test_a(Task): ext_in = ['.h'] -class task_test_b(TaskBase): +class task_test_b(Task): ext_out = ['.h'] ---------------