glymur/jp2box.py
def _parse_raw_data(self):
        """
        Private function for parsing UUID payloads if possible.
        """
        if self.uuid == _XMP_UUID:
            txt = self.raw_data.decode('utf-8')
            elt = ET.fromstring(txt)
            self.data = ET.ElementTree(elt)
        elif self.uuid == _GEOTIFF_UUID:
            self.data = tiff_header(self.raw_data)
        elif self.uuid == _EXIF_UUID:
            # Cut off 'EXIF\0\0' part.
            self.data = tiff_header(self.raw_data[6:])
        else:
            self.data = self.raw_data

        Private function for parsing UUID payloads if possible.
        
Private function for parsing UUID payloads if possible.
Private function for parsing UUID payloads if possible .
def _parse_raw_data(self):
        if self.uuid == _XMP_UUID:
            txt = self.raw_data.decode('utf-8')
            elt = ET.fromstring(txt)
            self.data = ET.ElementTree(elt)
        elif self.uuid == _GEOTIFF_UUID:
            self.data = tiff_header(self.raw_data)
        elif self.uuid == _EXIF_UUID:
            self.data = tiff_header(self.raw_data[6:])
        else:
            self.data = self.raw_data
def _parse_raw_data ( self ) : if self . uuid == _XMP_UUID : txt = self . raw_data . decode ( 'utf-8' ) elt = ET . fromstring ( txt ) self . data = ET . ElementTree ( elt ) elif self . uuid == _GEOTIFF_UUID : self . data = tiff_header ( self . raw_data ) elif self . uuid == _EXIF_UUID : self . data = tiff_header ( self . raw_data [ 6 : ] ) else : self . data = self . raw_data
Private function for parsing UUID payloads if possible.
Private function for parsing UUID payloads if possible .
"""
        Private function for parsing UUID payloads if possible.
        """ # Cut off 'EXIF\0\0' part.
self