def verbose_clean_up_f(f):
 deletion_list = [l.strip() for l in f]
 remove_all(deletion_list)
 print 'Post-run clean-up complete.'
 return True

def verbose_clean_up_f ( f ) : deletion_list = [ l . strip ( ) for l in f ] remove_all ( deletion_list ) print 'Post-run clean-up complete.' return True
removes list of files in f f: file containing list of filepaths example f: f1 .