[pyatspi2] Fix simulating of defunct state on LookupError



commit fdc908852eae50beca9f3a11787ef2e6feb57193
Author: Mike Gorse <mgorse novell com>
Date:   Wed Jun 2 10:56:28 2010 -0400

    Fix simulating of defunct state on LookupError

 pyatspi/accessible.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/accessible.py b/pyatspi/accessible.py
index 05c12a4..61515b6 100644
--- a/pyatspi/accessible.py
+++ b/pyatspi/accessible.py
@@ -435,7 +435,7 @@ class Accessible(BaseProxy):
                         try:
                                 return _marshal_state_set(func())
                         except LookupError:
-                                return [STATE_DEFUNCT]
+                                return _marshal_state_set ([1 << STATE_DEFUNCT, 0])
 
         def isEqual(self, other):
                 """



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]