

def _get_file_contents(self, file_path, is_text_file):
    'Obtains the contents of a file from the given path.\n\n        :param str file_path: Path to the file to be downloaded.\n        :param bool is_text_file: Is it a text file or a binary file?\n        '
    with contextlib.closing(self._conn.get_file(file_path)) as file:
        contents = file.read()
        if file:
            contents = contents.decode()
        return contents

dataset/ETHPy150Open s3rvac/retdec-python/retdec/resource.py Resource._get_file_contents/VarMisuse@44/144 `is_text_file`->`file`