def read(self, location):
        """
        Read file from disk.
        """
        location = os.path.expanduser(location)

        # Try to open this file, using different encodings.
        for e in ENCODINGS:
            try:
                with codecs.open(location, 'r', e) as f:
                    return f.read(), e
            except __HOLE__:
                pass  # Try next codec.

        # Unable to open.
        raise Exception('Unable to open file: %r' % location)
dataset/ETHPy150Open jonathanslenders/pyvim/pyvim/io/backends.py/FileIO.read