def read_text_file(filename):
 if PYTHON3:
  return open(filename, 'r', encoding='utf-8').read()
 else:
  return open(filename, 'r').read()

def read_text_file ( filename ) : if PYTHON3 : return open ( filename , 'r' , encoding = 'utf-8' ) . read ( ) else : return open ( filename , 'r' ) . read ( )
return the contents of *filename* .