tools/variations/split_variations_cmd.py
def _ParseForceFieldTrials(data):
  """Parses --force-fieldtrials switch value string.

  The switch value string is parsed to a list of _Trial objects.
  """
  data = data.rstrip('/')
  items = data.split('/')
  if len(items) % 2 != 0:
    raise ValueError('odd number of items in --force-fieldtrials value')
  trial_names = items[0::2]
  group_names = items[1::2]
  results = []
  for trial_name, group_name in zip(trial_names, group_names):
    star = False
    if trial_name.startswith('*'):
      star = True
      trial_name = trial_name[1:]
    results.append(_Trial(star, trial_name, group_name))
  return results
Parses --force-fieldtrials switch value string.

  The switch value string is parsed to a list of _Trial objects.
  
-force-fieldtrials switch value string.
The switch value string is parsed to a list of _Trial objects.
- force - fieldtrials switch value string . The switch value string is parsed to a list of _Trial objects .
def _ParseForceFieldTrials(data):
  data = data.rstrip('/')
  items = data.split('/')
  if len(items) % 2 != 0:
    raise ValueError('odd number of items in --force-fieldtrials value')
  trial_names = items[0::2]
  group_names = items[1::2]
  results = []
  for trial_name, group_name in zip(trial_names, group_names):
    star = False
    if trial_name.startswith('*'):
      star = True
      trial_name = trial_name[1:]
    results.append(_Trial(star, trial_name, group_name))
  return results
def _ParseForceFieldTrials ( data ) : data = data . rstrip ( '/' ) items = data . split ( '/' ) if len ( items ) % 2 != 0 : raise ValueError ( 'odd number of items in --force-fieldtrials value' ) trial_names = items [ 0 : : 2 ] group_names = items [ 1 : : 2 ] results = [ ] for trial_name , group_name in zip ( trial_names , group_names ) : star = False if trial_name . startswith ( '*' ) : star = True trial_name = trial_name [ 1 : ] results . append ( _Trial ( star , trial_name , group_name ) ) return results
Parses --force-fieldtrials switch value string.
Parses -- force - fieldtrials switch value string .
"""Parses --force-fieldtrials switch value string.

  The switch value string is parsed to a list of _Trial objects.
  """
data