From cb49c775961e89e544b7bf0509854d2b45d04e8e Mon Sep 17 00:00:00 2001 From: Willie Walker Date: Wed, 22 Apr 2009 10:53:53 -0400 Subject: [PATCH] Fix getDefaultAttributes to return a string of semi-colon delimited key:value pairs --- pyatspi/text.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pyatspi/text.py b/pyatspi/text.py index 5c37aed..5a36291 100644 --- a/pyatspi/text.py +++ b/pyatspi/text.py @@ -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): """ -- 2.7.4