DICT.py: fix a small bug and strip trailing whitespaces
authorMikael Berthe <mikael@lilotux.net>
Thu, 03 May 2007 19:29:40 +0200
changeset 32 dcb1b0459f1c
parent 31 a707bfd53b26
child 33 adf562e77977
DICT.py: fix a small bug and strip trailing whitespaces
modules/DICT.py
--- a/modules/DICT.py	Thu May 03 19:02:04 2007 +0200
+++ b/modules/DICT.py	Thu May 03 19:29:40 2007 +0200
@@ -6,7 +6,7 @@
     return (str[ : pos], str[pos + 2 : -1])
 
 class DictError(Exception):
-    
+
     def __init__(self, msg, code):
         self._code = code
 
@@ -38,8 +38,8 @@
         return self._interpret_multiline(self._send("SHOW INFO %s" % db))
 
     def get_server_info(self):
-        return self._interpret_multiline(self._send("SHOW SERVER"), "\r\n")
-    
+        return self._interpret_multiline(self._send("SHOW SERVER"))
+
     def get_definition(self, word, db = "*"):
         try:
             return self._interpret_multiresp(self._send("DEFINE %s %s" %
@@ -61,7 +61,7 @@
                 return []
 
             raise
-    
+
     def _send(self, cmd, resp_term = "\r\n.\r\n"):
         self._conn.send(cmd + "\r\n")
         self._verify(self._conn.recv(1024 * 16))
@@ -84,7 +84,7 @@
                 lines = []
             else:
                 lines.append(line)
-                    
+
         return resps
 
     def _receive_response(self, look_for):
@@ -93,7 +93,7 @@
             resp = resp + self._conn.recv(1024 * 16)
 
         return resp
-    
+
 # ---
 
 if __name__ == "__main__":