def _preprocess_file(file_name):
 raw_content = utils.get_file_content(file_name, force_lf_endings=True)
 comments = [c for c in _RE_COMMENT.finditer(raw_content)]
 content = list(raw_content)
 for m in comments:
  for i in range(m.start(), m.end()):
   content[i] = ' '
 content = ''.join(content)
 return (raw_content, content)

def _preprocess_file ( file_name ) : raw_content = utils . get_file_content ( file_name , force_lf_endings = True ) comments = [ c for c in _RE_COMMENT . finditer ( raw_content ) ] content = list ( raw_content ) for m in comments : for i in range ( m . start ( ) , m . end ( ) ) : content [ i ] = ' ' content = '' . join ( content ) return ( raw_content , content )
reads and preprocesses a file .