# HG changeset patch # User Mikael Berthe # Date 1178224918 -7200 # Node ID 535d03a56f9d458cc235c6e1829ed20a73d3268e # Parent adf562e779777da0dd996f94c47f7b17bd22eb35 Improve DICT module readbility diff -r adf562e77977 -r 535d03a56f9d 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 []