Improve DICT module readbility
authorMikael Berthe <mikael@lilotux.net>
Thu, 03 May 2007 22:41:58 +0200
changeset 34 535d03a56f9d
parent 33 adf562e77977
child 35 8daaa0b29b71
Improve DICT module readbility
modules/DICT.py
--- a/modules/DICT.py	Thu May 03 19:32:28 2007 +0200
+++ b/modules/DICT.py	Thu May 03 22:41:58 2007 +0200
@@ -41,9 +41,8 @@
 
     def get_definition(self, word, db = "*"):
         try:
-            return self._interpret_multiresp(self._send("DEFINE %s %s" %
-                                                        (db, word),
-                                                        "\r\n.\r\n250"))
+            ch = "DEFINE %s %s" % (db, word)
+            return self._interpret_multiresp(self._send(ch, "\r\n.\r\n250"))
         except DictError, e:
             if e.get_code() == 552:
                 return []