tools/grit/grit/node/structure.py
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'))
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.
    
Variable expansion on structures is controlled by an XML attribute.
However, old files assume that expansion is always on for Rc files.
Variable expansion on structures is controlled by an XML attribute . However old files assume that expansion is always on for Rc files .
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'))
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' ) )
Variable expansion on structures is controlled by an XML attribute.
Variable expansion on structures is controlled by an XML attribute .
'''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.
    '''
None
self