Fix getDefaultAttributes to return a string of semi-colon delimited key:value pairs
authorWillie Walker <william.walker@sun.com>
Wed, 22 Apr 2009 14:53:53 +0000 (10:53 -0400)
committerWillie Walker <william.walker@sun.com>
Wed, 22 Apr 2009 14:53:53 +0000 (10:53 -0400)
pyatspi/text.py

index 5c37aed..5a36291 100644 (file)
@@ -304,8 +304,7 @@ class Text(Accessible):
                 but which were not explicitly specified by the content creator.
                 """
                 func = self.get_dbus_method("getDefaultAttributes", dbus_interface=ATSPI_TEXT)
-                [attributes, startOffset, endOffset] = func(values)
-                return [[key + ':' + value for key, value in func().values()], startOffset, endOffset]
+                return ';'.join([key + ':' + value for key, value in func().iteritems()])
 
         def getNSelections(self):
                 """