remove some wrong decode()
This commit is contained in:
parent
19afbd2f9d
commit
69a138fe66
|
@ -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]:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue