glymur/jp2box.py
def _dispatch_validation_error(self, msg, writing=False):
        """Issue either a warning or an error depending on circumstance.

        If writing to file, then error out, as we do not wish to create bad
        JP2 files.  If reading, then we should be more lenient and just warn.
        """
        if writing:
            raise InvalidJp2kError(msg)
        else:
            warnings.warn(msg)
Issue either a warning or an error depending on circumstance.

        If writing to file, then error out, as we do not wish to create bad
        JP2 files.  If reading, then we should be more lenient and just warn.
        
Issue either a warning or an error depending on circumstance.
If writing to file, then error out, as we do not wish to create bad
JP2 files.  If reading, then we should be more lenient and just warn.
Issue either a warning or an error depending on circumstance . If writing to file then error out as we do not wish to create bad JP2 files . If reading then we should be more lenient and just warn .
def _dispatch_validation_error(self, msg, writing=False):
        if writing:
            raise InvalidJp2kError(msg)
        else:
            warnings.warn(msg)
def _dispatch_validation_error ( self , msg , writing = False ) : if writing : raise InvalidJp2kError ( msg ) else : warnings . warn ( msg )
Issue either a warning or an error depending on circumstance.
Issue either a warning or an error depending on circumstance .
"""Issue either a warning or an error depending on circumstance.

        If writing to file, then error out, as we do not wish to create bad
        JP2 files.  If reading, then we should be more lenient and just warn.
        """
self
msg
writing