From 52dc56ad35e9a6c487a2e101d171f36bdecb5da2 Mon Sep 17 00:00:00 2001 From: Alberto Mardegan Date: Wed, 22 Aug 2012 09:48:23 +0300 Subject: [PATCH] Be python3-compatible dict.iteritems() is no more. Also, fix a misleading comment (leftover from a previous implementation). --- pygobject/Signon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pygobject/Signon.py b/pygobject/Signon.py index 1a0aaa9..8855213 100644 --- a/pygobject/Signon.py +++ b/pygobject/Signon.py @@ -11,10 +11,10 @@ class GStrv(list): class AuthSession(Signon.AuthSession): - # Convert list of strings into a single string + # Convert list of strings into a GStrv def process(self, session_data, mechanism, callback, userdata): cleaned_data = {} - for (key, value) in session_data.iteritems(): + for (key, value) in session_data.items(): if isinstance(value, list): cleaned_data[key] = GStrv(value) else: -- 2.7.4