(self, variation)
return features
Returns the features dictionary for a specific variation.

    This is the basic dictionary informaion plus any specific overrides in
    the per-template-tree features.json file.

    Args:
      variation: (str) A target variation name.
    Returns:
      (Features) features dictionary
Returns the features dictionary for a specific variation.
Returns the features dictionary for a specific variation .
def GetFeatures(self, variation):
    """Returns the features dictionary for a specific variation.

    This is the basic dictionary informaion plus any specific overrides in
    the per-template-tree features.json file.

    Args:
      variation: (str) A target variation name.
    Returns:
      (Features) features dictionary
    """
    if not variation:
      return None
    template_dir = self.AbsoluteTemplateDir(variation)
    features = Features(template_dir, self.get(variation), variation)
    json_path = os.path.join(template_dir, 'features.json')

    try:
      features_json = files.GetFileContents(json_path)
    except files.FileDoesNotExist:
      # for backwards compatibility, we forgive this.
      # TODO(user): be stricter about this and
      # fix/remove any tests that fail as a result.
      return features

    features.update(json_expander.ExpandJsonTemplate(
        json_with_comments.Loads(features_json)))
    # If not specified, the releaseVersion matches the variation
    if not features.get('releaseVersion'):
      features['releaseVersion'] = variation
    return features
def GetFeatures ( self , variation ) : if not variation : return None template_dir = self . AbsoluteTemplateDir ( variation ) features = Features ( template_dir , self . get ( variation ) , variation ) json_path = os . path . join ( template_dir , 'features.json' ) try : features_json = files . GetFileContents ( json_path ) except files . FileDoesNotExist : # for backwards compatibility, we forgive this. # TODO(user): be stricter about this and # fix/remove any tests that fail as a result. return features features . update ( json_expander . ExpandJsonTemplate ( json_with_comments . Loads ( features_json ) ) ) # If not specified, the releaseVersion matches the variation if not features . get ( 'releaseVersion' ) : features [ 'releaseVersion' ] = variation return features