From: fujiwarat Date: Sat, 15 Dec 2012 08:40:18 +0000 (+0900) Subject: Use Variant.unpack() instead of Variant.dup_strv(). X-Git-Tag: 1.5.2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ac534fc002356b93e2015a8866f1ea89e3895f9;p=platform%2Fupstream%2Fibus.git Use Variant.unpack() instead of Variant.dup_strv(). Variant.dup_strv() returns a tuple in pygobject 3.2, e.g. (['space'], 1L), and a list in pygobject 3.4, e.g. ['space'] . BUG=RH#887153 Review URL: https://codereview.appspot.com/6941051 --- diff --git a/setup/main.py b/setup/main.py index a8acc7a..707faa4 100644 --- a/setup/main.py +++ b/setup/main.py @@ -87,7 +87,7 @@ class Setup(object): label = 'switch_engine' variant = self.__config.get_value('general/hotkey', name) if variant != None: - shortcuts = variant.dup_strv() + shortcuts = variant.unpack() else: shortcuts = ['space']