summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-10-14 21:37:21 +0200
committermathieui <mathieui@mathieui.net>2012-10-14 21:37:21 +0200
commit8b50961de936695272fa6b731ab8a5376cee8a02 (patch)
treea6ed66bffe36159f40cec2d76d34a3838fd309ce
parent931835e22bdd014a4460f04c7c14b9766ea6458a (diff)
downloadpoezio-8b50961de936695272fa6b731ab8a5376cee8a02.tar.gz
poezio-8b50961de936695272fa6b731ab8a5376cee8a02.tar.bz2
poezio-8b50961de936695272fa6b731ab8a5376cee8a02.tar.xz
poezio-8b50961de936695272fa6b731ab8a5376cee8a02.zip
Fix a traceback on completion_version
-rw-r--r--src/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 87a1ca8b..86365c8e 100644
--- a/src/core.py
+++ b/src/core.py
@@ -1595,7 +1595,7 @@ class Core(object):
n = len(the_input.get_text().split())
if n > 2 or (n == 2 and the_input.get_text().endswith(' ')):
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)
return the_input.auto_completion(sorted(comp), '', quotify=False)