mojo/public/tools/bindings/mojom_types_downgrader.py
def ReplaceFunction(match_object):
  """Returns the right replacement for the string matched against the regexp."""
  for index, (match, repl) in enumerate(_MOJO_REPLACEMENTS.items(), 1):
    if match_object.group(0).startswith(match):
      return repl.format(match_object.group(index))
Returns the right replacement for the string matched against the regexp.
Returns the right replacement for the string matched against the regexp.
Returns the right replacement for the string matched against the regexp .
def ReplaceFunction(match_object):
  for index, (match, repl) in enumerate(_MOJO_REPLACEMENTS.items(), 1):
    if match_object.group(0).startswith(match):
      return repl.format(match_object.group(index))
def ReplaceFunction ( match_object ) : for index , ( match , repl ) in enumerate ( _MOJO_REPLACEMENTS . items ( ) , 1 ) : if match_object . group ( 0 ) . startswith ( match ) : return repl . format ( match_object . group ( index ) )
Returns the right replacement for the string matched against the regexp.
Returns the right replacement for the string matched against the regexp .
"""Returns the right replacement for the string matched against the regexp."""
match_object