提交 b3465094 编写于 作者: L Lukáš Doktor

avocado.core.tree: Modify is_leaf()

no need to compare size, simple `not self.children` does the same job.
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>

Conflicts:
	avocado/core/tree.py
上级 c3dedfc4
......@@ -101,7 +101,7 @@ class TreeNode(object):
@property
def is_leaf(self):
return len(self.children) == 0
return not self.children
@property
def root(self):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册