[pyatspi2] Fix traceback when creating match rules with attribute sets



commit 46d3676c438c257a4cc4953632ab65709cad3566
Author: Mike Gorse <mgorse linux-l2tz site>
Date:   Wed May 11 20:24:05 2011 +0200

    Fix traceback when creating match rules with attribute sets

 pyatspi/Accessibility.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/pyatspi/Accessibility.py b/pyatspi/Accessibility.py
index 154e6d1..dd2ccb9 100644
--- a/pyatspi/Accessibility.py
+++ b/pyatspi/Accessibility.py
@@ -88,7 +88,8 @@ def getBoundingBox(rect):
 
 def attributeListToHash(list):
 	ret = dict()
-	for key, val in list:
+	for item in list:
+                [key, val] = item.split(":")
 		ret[key] = val
 	return ret
 



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