mojo/public/tools/bindings/mojom_types_downgrader.py
def DowngradePath(src_path, output_dir=None):
  """Downgrades the mojom files pointed by |src_path| to the old mojo types.

  Optionally pass |output_dir| to place the result under a separate output
  directory, preserving the relative path to the file included in |path|.
  """
  if os.path.isdir(src_path):
    DowngradeDirectory(src_path, output_dir)
  elif os.path.isfile(src_path):
    DowngradeFile(src_path, output_dir)
  else:
    print(">>> {} not pointing to a valid file or directory".format(src_path))
    sys.exit(1)
Downgrades the mojom files pointed by |src_path| to the old mojo types.

  Optionally pass |output_dir| to place the result under a separate output
  directory, preserving the relative path to the file included in |path|.
  
Downgrades the mojom files pointed by |src_path| to the old mojo types.
Optionally pass |output_dir| to place the result under a separate output
directory, preserving the relative path to the file included in |path|.
Downgrades the mojom files pointed by |src_path| to the old mojo types . Optionally pass |output_dir| to place the result under a separate output directory preserving the relative path to the file included in |path| .
def DowngradePath(src_path, output_dir=None):
  if os.path.isdir(src_path):
    DowngradeDirectory(src_path, output_dir)
  elif os.path.isfile(src_path):
    DowngradeFile(src_path, output_dir)
  else:
    print(">>> {} not pointing to a valid file or directory".format(src_path))
    sys.exit(1)
def DowngradePath ( src_path , output_dir = None ) : if os . path . isdir ( src_path ) : DowngradeDirectory ( src_path , output_dir ) elif os . path . isfile ( src_path ) : DowngradeFile ( src_path , output_dir ) else : print ( ">>> {} not pointing to a valid file or directory" . format ( src_path ) ) sys . exit ( 1 )
Downgrades the mojom files pointed by |src_path| to the old mojo types.
Downgrades the mojom files pointed by |src_path| to the old mojo types .
"""Downgrades the mojom files pointed by |src_path| to the old mojo types.

  Optionally pass |output_dir| to place the result under a separate output
  directory, preserving the relative path to the file included in |path|.
  """
src_path
output_dir