def get_text_stream(name, encoding=None, errors='strict'):
 opener = text_streams.get(name)
 if (opener is None):
  raise TypeError(('Unknown standard stream %r' % name))
 return opener(encoding, errors)

def get_text_stream ( name , encoding = None , errors = 'strict' ) : opener = text_streams . get ( name ) if ( opener is None ) : raise TypeError ( ( 'Unknown standard stream %r' % name ) ) return opener ( encoding , errors )
returns a system stream for text processing .