def unit_deprecation_warning(s, unit, standard_name, format_decomposed):
 from ..core import UnitsWarning
 message = u"The unit '{0}' has been deprecated in the {1} standard.".format(s, standard_name)
 decomposed = _try_decomposed(unit, format_decomposed)
 if (decomposed is not None):
  message += u' Suggested: {0}.'.format(decomposed)
 warnings.warn(message, UnitsWarning)

def unit_deprecation_warning ( s , unit , standard_name , format_decomposed ) : from . . core import UnitsWarning message = u"The unit '{0}' has been deprecated in the {1} standard." . format ( s , standard_name ) decomposed = _try_decomposed ( unit , format_decomposed ) if ( decomposed is not None ) : message += u' Suggested: {0}.' . format ( decomposed ) warnings . warn ( message , UnitsWarning )
raises a unitswarning about a deprecated unit in a given format .