cosmetic
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 30 Jan 2014 14:50:51 +0000 (15:50 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 30 Jan 2014 14:50:51 +0000 (15:50 +0100)
system/TestSsh.py
system/utils.py

index e07d97e..595df8f 100644 (file)
@@ -29,9 +29,9 @@ class TestSsh:
         result=''
         for char in command:
             if char in "\\\"'<>&|;()$*~":
-                result +='\\'+char
+                result += '\\'+char
             else:
-                result +=char
+                result += char
         return result
 
     # check main IP address against the provided hostname
index cc03318..073c551 100644 (file)
@@ -44,15 +44,10 @@ def system(command,background=False,silent=False):
 ### WARNING : this ALWAYS does its job, even in dry_run mode
 def output_of (command):
     import commands
-#    if options.dry_run:
-#        print 'dry_run',command
-#        return (0,'[[dry-run - fake output]]')
-#    else:
     (code,string) = commands.getstatusoutput(command)
     return (code,string)
 
 
-
 # convenience: translating shell-like pattern into regexp
 def match (string, pattern):
     # tmp - there's probably much simpler