def warn_deprecated(since, message='', name='', alternative='', pending=False, obj_type='attribute', addendum=''):
 message = _generate_deprecation_message(since, message, name, alternative, pending, obj_type)
 warnings.warn(message, mplDeprecation, stacklevel=1)

def warn_deprecated ( since , message = '' , name = '' , alternative = '' , pending = False , obj_type = 'attribute' , addendum = '' ) : message = _generate_deprecation_message ( since , message , name , alternative , pending , obj_type ) warnings . warn ( message , mplDeprecation , stacklevel = 1 )
used to display deprecation warning in a standard way .