From c1e92055458fecac1a34349aa1788e03c3139676 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 4 Nov 2003 08:26:52 +0000 Subject: [PATCH] Stylistic update; there are things better than lambdas... --- plugins/FunDB.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/FunDB.py b/plugins/FunDB.py index 52be56065..a3adaa1ed 100755 --- a/plugins/FunDB.py +++ b/plugins/FunDB.py @@ -175,7 +175,7 @@ class FunDB(callbacks.Privmsg): cursor.execute("""SELECT word FROM words WHERE word LIKE %s ORDER BY word""", word) - words = map(lambda t: t[0], cursor.fetchall()) + words = [t[0] for t in cursor.fetchall()] irc.reply(msg, ', '.join(words)) def excuse(self, irc, msg, args): @@ -513,7 +513,7 @@ class FunDB(callbacks.Privmsg): WHERE sorted_word_id=( SELECT sorted_word_id FROM words WHERE word=%s)""", word) - words = map(lambda t: t[0], cursor.fetchall()) + words = [t[0] for t in cursor.fetchall()] try: words.remove(word) except ValueError: