#NEWLINE# def put_file( self , local_path , remote_path , use_sudo = False , sandbox = False ) : #NEWLINE# #INDENT# '\n        Upload this local_file to the remote location.\n        ' #NEWLINE# with self . open ( remote_path , 'wb' , use_sudo = sandbox , sandbox = sandbox ) as f : #NEWLINE# #INDENT# local_path = self . _expand_local_path ( local_path ) #NEWLINE# with open ( local_path , 'rb' ) as f2 : #NEWLINE# #INDENT# f . write ( f2 . read ( ) )