tools/generate_stubs/generate_stubs.py
def CreateOutputDirectories(options):
  """Creates the intermediate and final output directories.

  Given the parsed options, create the intermediate and final output
  directories if they do not exist.  Returns the paths to both directories
  as a pair.

  Args:
    options: An OptionParser.OptionValues object with the parsed options.

  Returns:
    The pair (out_dir, intermediate_dir), both of which are strings.
  """
  out_dir = os.path.normpath(options.out_dir)
  intermediate_dir = os.path.normpath(options.intermediate_dir)
  if intermediate_dir is None:
    intermediate_dir = out_dir

  EnsureDirExists(out_dir)
  EnsureDirExists(intermediate_dir)

  return out_dir, intermediate_dir
Creates the intermediate and final output directories.

  Given the parsed options, create the intermediate and final output
  directories if they do not exist.  Returns the paths to both directories
  as a pair.

  Args:
    options: An OptionParser.OptionValues object with the parsed options.

  Returns:
    The pair (out_dir, intermediate_dir), both of which are strings.
  
Creates the intermediate and final output directories.
Given the parsed options, create the intermediate and final output
directories if they do not exist.  Returns the paths to both directories
as a pair.
Creates the intermediate and final output directories . Given the parsed options create the intermediate and final output directories if they do not exist . Returns the paths to both directories as a pair .
def CreateOutputDirectories(options):
  out_dir = os.path.normpath(options.out_dir)
  intermediate_dir = os.path.normpath(options.intermediate_dir)
  if intermediate_dir is None:
    intermediate_dir = out_dir
  EnsureDirExists(out_dir)
  EnsureDirExists(intermediate_dir)
  return out_dir, intermediate_dir
def CreateOutputDirectories ( options ) : out_dir = os . path . normpath ( options . out_dir ) intermediate_dir = os . path . normpath ( options . intermediate_dir ) if intermediate_dir is None : intermediate_dir = out_dir EnsureDirExists ( out_dir ) EnsureDirExists ( intermediate_dir ) return out_dir , intermediate_dir
Creates the intermediate and final output directories.
Creates the intermediate and final output directories .
"""Creates the intermediate and final output directories.

  Given the parsed options, create the intermediate and final output
  directories if they do not exist.  Returns the paths to both directories
  as a pair.

  Args:
    options: An OptionParser.OptionValues object with the parsed options.

  Returns:
    The pair (out_dir, intermediate_dir), both of which are strings.
  """
The pair (out_dir, intermediate_dir), both of which are strings.
The pair ( out_dir intermediate_dir ) both of which are strings .
options
An OptionParser.OptionValues object with the parsed options.
An OptionParser . OptionValues object with the parsed options .