#NEWLINE# def read_file( self , filepath ) : #NEWLINE# #INDENT# " Read the specified file and return it's handle. " #NEWLINE# outputfile = tempfile . SpooledTemporaryFile ( max_size = dbbackup_settings . TMP_FILE_MAX_SIZE , dir = dbbackup_settings . TMP_DIR ) #NEWLINE# self . ftp . retrbinary ( ( 'RETR ' + filepath ) , outputfile . write ) #NEWLINE# return self