def getImage(self):
        if pil is None or self._pilimage == 'failed':
            return None
        if self._pilimage:
            return self._pilimage
        else:
            data = self.getData()
            if not data:
                self._pilimage = 'failed'
                return None
            try:
                self._pilimage = pil.open( BytesIO(data) )
                self._pilimage.load()
            except __HOLE__ as ex:
                self._pilimage = 'failed'
                return None
            return self._pilimage
dataset/ETHPy150Open pycollada/pycollada/collada/material.py/CImage.getImage