parameters: (name, value, filename)
docstring: Raises an exception if the given attribute is deprecated.
docstring_summary: Raises an exception if the given attribute is deprecated.
docstring_tokens: Raises an exception if the given attribute is deprecated .
function: def AssertNotDeprecatedAttribute(name, value, filename):
    """Raises an exception if the given attribute is deprecated."""
    msg = None
    if name in ATTRIBUTES_TO_MAP_REVERSED:
      msg = '{0} should use {1} instead of {2}'.format(filename,
          ATTRIBUTES_TO_MAP_REVERSED[name], name)
    elif name in GRAVITY_ATTRIBUTES and ('left' in value or 'right' in value):
      msg = '{0} should use start/end instead of left/right for {1}'.format(
          filename, name)
  
    if msg:
      msg += ('\nFor background, see: http://android-developers.blogspot.com/'
              '2013/03/native-rtl-support-in-android-42.html\n'
              'If you have a legitimate need for this attribute, discuss with '
              'kkimlabs@chromium.org or newt@chromium.org')
      raise Exception(msg)
function_tokens: def AssertNotDeprecatedAttribute ( name , value , filename ) : msg = None if name in ATTRIBUTES_TO_MAP_REVERSED : msg = '{0} should use {1} instead of {2}' . format ( filename , ATTRIBUTES_TO_MAP_REVERSED [ name ] , name ) elif name in GRAVITY_ATTRIBUTES and ( 'left' in value or 'right' in value ) : msg = '{0} should use start/end instead of left/right for {1}' . format ( filename , name ) if msg : msg += ( '\nFor background, see: http://android-developers.blogspot.com/' '2013/03/native-rtl-support-in-android-42.html\n' 'If you have a legitimate need for this attribute, discuss with ' 'kkimlabs@chromium.org or newt@chromium.org' ) raise Exception ( msg )