From: Willie Walker Date: Wed, 22 Apr 2009 14:53:53 +0000 (-0400) Subject: Fix getDefaultAttributes to return a string of semi-colon delimited key:value pairs X-Git-Tag: AT_SPI2_ATK_2_12_0~523 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=cb49c775961e89e544b7bf0509854d2b45d04e8e Fix getDefaultAttributes to return a string of semi-colon delimited key:value pairs --- 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): """