def get_posix_property(value, mode=POSIX):
    """Retrieve the posix category."""

    if mode == POSIX_BYTES:
        return unidata.ascii_posix_properties[value]
    elif mode == POSIX_UNICODE:
        return unidata.unicode_binary[
            ('^posix' + value[1:]) if value.startswith('^') else ('posix' + value)
        ]
    else:
        return unidata.unicode_posix_properties[value]
def get_posix_property ( value , mode = POSIX ) : if mode == POSIX_BYTES : return unidata . ascii_posix_properties [ value ] elif mode == POSIX_UNICODE : return unidata . unicode_binary [ ( '^posix' + value [ 1 : ] ) if value . startswith ( '^' ) else ( 'posix' + value ) ] else : return unidata . unicode_posix_properties [ value ]
Retrieve the posix category.