def extract_from_file(method, filename, keywords=DEFAULT_KEYWORDS, comment_tags=(), options=None, strip_comment_tags=False):
 with open(filename, 'rb') as fileobj:
  return list(extract(method, fileobj, keywords, comment_tags, options, strip_comment_tags))

def extract_from_file ( method , filename , keywords = DEFAULT_KEYWORDS , comment_tags = ( ) , options = None , strip_comment_tags = False ) : with open ( filename , 'rb' ) as fileobj : return list ( extract ( method , fileobj , keywords , comment_tags , options , strip_comment_tags ) )
extract messages from a specific file .