This commit is contained in:
Thomas Nagy 2016-03-15 19:26:31 +01:00
parent 381337357e
commit 5bf2132211
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64
2 changed files with 9 additions and 9 deletions

6
DEVEL
View File

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

View File

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