parameters: (builder, builder_group)
return_statement: return None
docstring: Fallback to V8 builder names before splitting builder/tester.
  
    This eases splitting builders and testers on release branches and
    can be removed as soon as all builder have been split and all MB configs
    exist on all branches.
docstring_summary: Fallback to V8 builder names before splitting builder/tester.
docstring_tokens: Fallback to V8 builder names before splitting builder / tester .
function: def _v8_builder_fallback(builder, builder_group):
    """Fallback to V8 builder names before splitting builder/tester.
  
    This eases splitting builders and testers on release branches and
    can be removed as soon as all builder have been split and all MB configs
    exist on all branches.
    """
    builders = [builder]
    if builder.endswith(' - builder'):
      builders.append(builder[:-len(' - builder')])
    elif builder.endswith(' builder'):
      builders.append(builder[:-len(' builder')])
  
    for builder in builders:
      if builder in builder_group:
        return builder_group[builder]
    return None
function_tokens: def _v8_builder_fallback ( builder , builder_group ) : builders = [ builder ] if builder . endswith ( ' - builder' ) : builders . append ( builder [ : - len ( ' - builder' ) ] ) elif builder . endswith ( ' builder' ) : builders . append ( builder [ : - len ( ' builder' ) ] ) for builder in builders : if builder in builder_group : return builder_group [ builder ] return None