parameters: (self)
docstring: Variable expansion on structures is controlled by an XML attribute.
  
      However, old files assume that expansion is always on for Rc files.
  
      Returns:
        A boolean.
docstring_summary: Variable expansion on structures is controlled by an XML attribute.
docstring_tokens: Variable expansion on structures is controlled by an XML attribute .
function: def ExpandVariables(self):
      '''Variable expansion on structures is controlled by an XML attribute.
  
      However, old files assume that expansion is always on for Rc files.
  
      Returns:
        A boolean.
      '''
      attrs = self.GetRoot().attrs
      if 'grit_version' in attrs and attrs['grit_version'] > 1:
        return self.attrs['expand_variables'] == 'true'
      else:
        return (self.attrs['expand_variables'] == 'true' or
                self.attrs['file'].lower().endswith('.rc'))
function_tokens: def ExpandVariables ( self ) : attrs = self . GetRoot ( ) . attrs if 'grit_version' in attrs and attrs [ 'grit_version' ] > 1 : return self . attrs [ 'expand_variables' ] == 'true' else : return ( self . attrs [ 'expand_variables' ] == 'true' or self . attrs [ 'file' ] . lower ( ) . endswith ( '.rc' ) )