remove some wrong decode()

This commit is contained in:
Yann Leboulanger 2013-03-10 16:59:16 +01:00
parent 19afbd2f9d
commit 69a138fe66
2 changed files with 3 additions and 4 deletions

View File

@ -2996,8 +2996,7 @@ class GroupchatConfigWindow:
['reason'] != model[iter_][1]):
users_dict[jid] = {'affiliation': affiliation}
if affiliation == 'outcast':
users_dict[jid]['reason'] = model[iter_][1].decode(
'utf-8')
users_dict[jid]['reason'] = model[iter_][1]
iter_ = model.iter_next(iter_)
# remove removed one
for jid in self.start_users_dict[affiliation]:

View File

@ -1649,8 +1649,8 @@ class ToplevelAgentBrowser(AgentBrowser):
iter_ = None
cat_iter = self.model.get_iter_first()
while cat_iter and not iter_:
cjid = self.model.get_value(cat_iter, 0).decode('utf-8')
cnode = self.model.get_value(cat_iter, 1).decode('utf-8')
cjid = self.model.get_value(cat_iter, 0)
cnode = self.model.get_value(cat_iter, 1)
if jid == cjid and node == cnode:
iter_ = cat_iter
break