glymur/jp2box.py
def _validate(self, writing=True):
        """Verify that the box obeys the specifications."""
        if any([box.box_id != 'colr' for box in self.box]):
            msg = ("Colour group boxes can only contain colour specification "
                   "boxes.")
            self._dispatch_validation_error(msg, writing=writing)
Verify that the box obeys the specifications.
Verify that the box obeys the specifications.
Verify that the box obeys the specifications .
def _validate(self, writing=True):
        if any([box.box_id != 'colr' for box in self.box]):
            msg = ("Colour group boxes can only contain colour specification "
                   "boxes.")
            self._dispatch_validation_error(msg, writing=writing)
def _validate ( self , writing = True ) : if any ( [ box . box_id != 'colr' for box in self . box ] ) : msg = ( "Colour group boxes can only contain colour specification " "boxes." ) self . _dispatch_validation_error ( msg , writing = writing )
Verify that the box obeys the specifications.
Verify that the box obeys the specifications .
"""Verify that the box obeys the specifications."""
self
writing