[gedit] Snippets: fix completion bug
- From: SÃbastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Snippets: fix completion bug
- Date: Wed, 16 Jan 2013 20:50:23 +0000 (UTC)
commit b6b9ef307b7bec4d7b514d4a2aaf214f5df53746
Author: SÃbastien Wilmet <swilmet gnome org>
Date: Wed Jan 16 18:52:39 2013 +0100
Snippets: fix completion bug
The error was:
Traceback (most recent call last):
File "/opt/gnome/lib/gedit/plugins/snippets/completion.py", line 118, in do_populate
context.add_proposals(self, proposals, True)
File "/opt/gnome/lib/python3.2/site-packages/gi/types.py", line 113, in function
return info.invoke(*args, **kwargs)
TypeError: Must be sequence, not map
plugins/snippets/snippets/completion.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/snippets/snippets/completion.py b/plugins/snippets/snippets/completion.py
index 25610f2..e84e72b 100644
--- a/plugins/snippets/snippets/completion.py
+++ b/plugins/snippets/snippets/completion.py
@@ -111,7 +111,7 @@ class Provider(GObject.Object, GtkSource.CompletionProvider):
if word:
proposals = filter(lambda x: x['tag'].startswith(word), proposals)
- return map(lambda x: Proposal(x), proposals)
+ return list(map(lambda x: Proposal(x), proposals))
def do_populate(self, context):
proposals = self.get_proposals(self.get_word(context))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]