(fname)
return open(fname)
Transparently handle .bz2 files.
Transparently handle .bz2 files.
Transparently handle . bz2 files .
def open_(fname):
    """Transparently handle .bz2 files."""
    if fname.endswith(".bz2"):
        import bz2
        return bz2.open(fname, "rt")
    return open(fname)
def open_ ( fname ) : if fname . endswith ( ".bz2" ) : import bz2 return bz2 . open ( fname , "rt" ) return open ( fname )