def simple_warning(msg, category=UserWarning, stacklevel=2):
    '\n    Display a simple warning message without the annoying extra line showing the warning call.\n\n    Parameters\n    ----------\n    msg : str\n        The warning message.\n    category : class\n        The warning class.\n    stacklevel : int\n        Number of levels up the stack to identify as the warning location.\n    '
    warn_deprecation('simple_warning is deprecated. Use openmdao.utils.om_warnings.issue_warning instead.')
    old_format = warnings.formatwarning
    warnings.formatwarning = _warn_simple_format
    try:
        warnings.warn(msg, category, stacklevel)
    finally:
        warnings.formatwarning = old_format
Display a simple warning message without the annoying extra line showing the warning call.

Parameters
----------
msg : str
    The warning message.
category : class
    The warning class.
stacklevel : int
    Number of levels up the stack to identify as the warning location.
def simple_warning(msg, category=UserWarning, stacklevel=2):
    '\n    Display a simple warning message without the annoying extra line showing the warning call.\n\n    Parameters\n    ----------\n    msg : str\n        The warning message.\n    category : class\n        The warning class.\n    stacklevel : int\n        Number of levels up the stack to identify as the warning location.\n    '
    warn_deprecation('simple_warning is deprecated. Use openmdao.utils.om_warnings.issue_warning instead.')
    old_format = warnings.formatwarning
    warnings.formatwarning = _warn_simple_format
    try:
        warnings.warn(msg, category, stacklevel)
    finally:
        warnings.formatwarning = old_format