(fname)
return open(fname, "rt", **kw)
On Python 3 opens a file in text mode by using fs encoding.
    On Python 2 this is just an alias for open(name, 'rt').
On Python 3 opens a file in text mode by using fs encoding.
    On Python 2 this is just an alias for open(name, 'rt').
On Python 3 opens a file in text mode by using fs encoding . On Python 2 this is just an alias for open ( name rt ) .
def open_text(fname):
    """On Python 3 opens a file in text mode by using fs encoding.
    On Python 2 this is just an alias for open(name, 'rt').
    """
    kw = dict(encoding=FS_ENCODING) if PY3 else dict()
    return open(fname, "rt", **kw)
def open_text ( fname ) : kw = dict ( encoding = FS_ENCODING ) if PY3 else dict ( ) return open ( fname , "rt" , * * kw )