glymur/lib/openjp2.py
def check_error(status):
    """Set a generic function as the restype attribute of all OpenJPEG
    functions that return a BOOL_TYPE value.  This way we do not have to check
    for error status in each wrapping function and an exception will always be
    appropriately raised.
    """
    if status != 1:
        lst = []
        while ERROR_MSG_LST.qsize() > 0:
            lst.append(ERROR_MSG_LST.get())
        msg = '\n'.join(lst)
        raise OpenJPEGLibraryError(msg)
Set a generic function as the restype attribute of all OpenJPEG
    functions that return a BOOL_TYPE value.  This way we do not have to check
    for error status in each wrapping function and an exception will always be
    appropriately raised.
    
Set a generic function as the restype attribute of all OpenJPEG
functions that return a BOOL_TYPE value.  This way we do not have to check
for error status in each wrapping function and an exception will always be
appropriately raised.
Set a generic function as the restype attribute of all OpenJPEG functions that return a BOOL_TYPE value . This way we do not have to check for error status in each wrapping function and an exception will always be appropriately raised .
def check_error(status):
    if status != 1:
        lst = []
        while ERROR_MSG_LST.qsize() > 0:
            lst.append(ERROR_MSG_LST.get())
        msg = '\n'.join(lst)
        raise OpenJPEGLibraryError(msg)
def check_error ( status ) : if status != 1 : lst = [ ] while ERROR_MSG_LST . qsize ( ) > 0 : lst . append ( ERROR_MSG_LST . get ( ) ) msg = '\n' . join ( lst ) raise OpenJPEGLibraryError ( msg )
Set a generic function as the restype attribute of all OpenJPEG
functions that return a BOOL_TYPE value.
Set a generic function as the restype attribute of all OpenJPEG functions that return a BOOL_TYPE value .
"""Set a generic function as the restype attribute of all OpenJPEG
    functions that return a BOOL_TYPE value.  This way we do not have to check
    for error status in each wrapping function and an exception will always be
    appropriately raised.
    """
status