Fix a traceback on completion_version

This commit is contained in:
mathieui 2012-10-14 21:37:21 +02:00
parent 931835e22b
commit 8b50961de9

View file

@ -1595,7 +1595,7 @@ class Core(object):
n = len(the_input.get_text().split()) n = len(the_input.get_text().split())
if n > 2 or (n == 2 and the_input.get_text().endswith(' ')): if n > 2 or (n == 2 and the_input.get_text().endswith(' ')):
return return
comp = reduce(lambda x, y: x+y, (jid.resources for jid in roster if len(jid)), []) comp = reduce(lambda x, y: x + [i for i in y], (jid.resources for jid in roster if len(jid)), [])
comp = (str(res.jid) for res in comp) comp = (str(res.jid) for res in comp)
return the_input.auto_completion(sorted(comp), '', quotify=False) return the_input.auto_completion(sorted(comp), '', quotify=False)