@@ -243,8 +243,8 @@ def exec_command(self, command, sudo=False, user=None,
243243 channel .settimeout (self .channel_timeout )
244244 if environment :
245245 channel .update_environment (environment )
246- stdout , stderr , stdin = channel .makefile ('rb' ), channel . makefile_stderr ( 'rb' ), \
247- channel .makefile ('wb' )
246+ stdout , stderr , stdin = channel .makefile ('rb' ), \
247+ channel .makefile_stderr ( 'rb' ), channel . makefile ('wb' )
248248 for _char in ['\\ ' , '"' , '$' , '`' ]:
249249 command = command .replace (_char , r'\%s' % (_char ,))
250250 shell = '$SHELL -c' if not shell else shell
@@ -383,7 +383,8 @@ def copy_file(self, local_file, remote_file, recurse=False,
383383 try :
384384 sftp .put (local_file , remote_file )
385385 except Exception as error :
386- logger .error ("Error occured copying file %s to remote destination %s:%s - %s" ,
386+ logger .error ("Error occured copying file %s to remote destination "
387+ "%s:%s - %s" ,
387388 local_file , self .host , remote_file , error )
388389 raise error
389390 logger .info ("Copied local file %s to remote destination %s:%s" ,
0 commit comments