From 2634e737c752756a4d5a2177c6a88babf2088ac1 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Sun, 11 Nov 2012 21:16:39 +0000 Subject: Swapped list and single child --- (limited to 'tests') diff --git a/tests/tree.py b/tests/tree.py index 329311a..8725098 100644 --- a/tests/tree.py +++ b/tests/tree.py @@ -49,7 +49,7 @@ class Node: accessible = pyatspi.findDescendant(self._accessible, predicate) if accessible is None: - return [] + return None return Node(accessible) @@ -63,7 +63,7 @@ class Node: all_accessibles = pyatspi.findAllDescendants(self._accessible, predicate) if not all_accessibles: - return None + return [] return [Node(accessible) for accessible in all_accessibles] -- cgit v0.9.1