OSDN Git Service

modify scripts 'vim tabstop'.
[ti2/ti2.git] / linkpair / collect / agent / commandrunner.py
index 2a76309..5d6a51e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
 # -*- coding: utf-8 -*-
 #
 
@@ -34,7 +34,8 @@ class CommandRunner(object):
         self._ssh_passauth = False
 
         ''' set parameters '''
-        [self._ssh_username, self._ssh_hostname, self._ssh_hostport] = self._u.parse_remote_desc(remote_desc)
+        [self._ssh_username, self._ssh_hostname,
+            self._ssh_hostport] = self._u.parse_remote_desc(remote_desc)
 
     def exec_cmd(self, cmdline):
         args = shlex.split(cmdline)
@@ -61,7 +62,7 @@ class CommandRunner(object):
         stdin, stdout, stderr = sshc.exec_command(cmdline)
         result = stdout.read().splitlines()
         return result
-    
+
     def set_remote_sshkey(self, remote_sshkey):
         self._remote_sshkey = remote_sshkey
         self._ssh_keyauth = True
@@ -69,5 +70,3 @@ class CommandRunner(object):
     def set_remote_password(self, remote_password):
         self._remote_password = remote_password
         self._ssh_passauth = True
-        
-    
\ No newline at end of file