'Return uncompressed data for archive entry.
For longer files using :meth:`RarFile.open` may be better idea.
Parameters:
fname
filename or RarInfo instance
psw
password to use for extracting.'

def read(self, fname, psw=None):

    with self.open(fname, 'r', psw) as f:
        return f.read()
