autorelease/root_dir_checks.py
def setup_is_release(setup, expected=True):
    """
    Returns
    -------
    bool or None :
        None if we can't tell
    """
    try:
        is_release = setup.IS_RELEASE
    except AttributeError:
        return None
    else:
        if is_release and expected:
            return ""
        elif not is_release and not expected:
            return ""
        else:
            return ("Unexpected value of setup.py IS_RELEASE. Found "
                    + str(is_release) + ".\n")
def setup_is_release(setup, expected=True):
    """
    Returns
    -------
    bool or None :
        None if we can't tell
    """
    try:
        is_release = setup.IS_RELEASE
    except AttributeError:
        return None
    else:
        if is_release and expected:
            return ""
        elif not is_release and not expected:
            return ""
        else:
            return ("Unexpected value of setup.py IS_RELEASE. Found "
                    + str(is_release) + ".\n")
def setup_is_release ( setup , expected = True ) : try : is_release = setup . IS_RELEASE except AttributeError : return None else : if is_release and expected : return "" elif not is_release and not expected : return "" else : return ( "Unexpected value of setup.py IS_RELEASE. Found " + str ( is_release ) + ".\n" )
Returns
    -------
    bool or None :
        None if we can't tell
Returns ------- bool or None : None if we can t tell