Revision: 170
Author:   janne.t.harkonen
Date:     Wed Aug 29 04:20:51 2012
Log:      client: clean up attributes
http://code.google.com/p/robotframework-sshlibrary/source/detail?r=170

Modified:
 /trunk/src/SSHLibrary/client.py

=======================================
--- /trunk/src/SSHLibrary/client.py     Wed Aug 29 04:20:40 2012
+++ /trunk/src/SSHLibrary/client.py     Wed Aug 29 04:20:51 2012
@@ -50,13 +50,18 @@

         :param ClientConfig config: the configuration used by this client
         """
-        self.host = config.host
-        self.port = config.port
         self.config = config
-        self.shell = None
         self.client = self._create_client()
         self._commands = []

+    @property
+    def host(self):
+        return self.config.host
+
+    @property
+    def port(self):
+        return self.config.port
+
     @staticmethod
     def enable_logging(path):
         """Log SSH events to file.

Reply via email to