original_docstring: Generates the buildout configuration
  
      Using the custom ``ListBuildout`` context, lists will be printed as multilines.
      If output is set to ``-`` it will print to stdout the file.
  
      Args:
          parts: dict based representation of the buildout file to generate
          output: name of the file to output
          force: if set, it won't care whether the file exists
  
      Raises:
          FileExistsError: when a file already exists.
      
docstring: Generates the buildout configuration
  Using the custom ``ListBuildout`` context, lists will be printed as multilines.
  If output is set to ``-`` it will print to stdout the file.
docstring_tokens: Generates the buildout configuration Using the custom ` ` ListBuildout ` ` context lists will be printed as multilines . If output is set to ` ` - ` ` it will print to stdout the file .
code: def generate_buildout_config(parts, output, force=False):
      '''Generates the buildout configuration
  
      Using the custom ``ListBuildout`` context, lists will be printed as multilines.
      If output is set to ``-`` it will print to stdout the file.
  
      Args:
          parts: dict based representation of the buildout file to generate
          output: name of the file to output
          force: if set, it won't care whether the file exists
  
      Raises:
          FileExistsError: when a file already exists.
      '''
      with ListBuildout.generate_context():
          parser = ConfigParser()
          parser.read_dict(parts)
  
          if output == '-':
              parser.write(sys.stdout)
              return
  
          if not force and os.path.exists(output):
              raise FileExistsError('\n'.join([
                      'Cannot overwrite {}: file already exists! Use --force if necessary.'.format(output),
                      'As a buildout configuration exists, you might want to run buildout directly!'
                      ]))
  
          with open(output, 'w') as out:
              parser.write(out)
code_tokens: def generate_buildout_config ( parts , output , force = False ) : with ListBuildout . generate_context ( ) : parser = ConfigParser ( ) parser . read_dict ( parts ) if output == '-' : parser . write ( sys . stdout ) return if not force and os . path . exists ( output ) : raise FileExistsError ( '\n' . join ( [ 'Cannot overwrite {}: file already exists! Use --force if necessary.' . format ( output ) , 'As a buildout configuration exists, you might want to run buildout directly!' ] ) ) with open ( output , 'w' ) as out : parser . write ( out )
short_docstring: Generates the buildout configuration
  Using the custom ``ListBuildout`` context, lists will be printed as multilines.
short_docstring_tokens: Generates the buildout configuration Using the custom ` ` ListBuildout ` ` context lists will be printed as multilines .
comment: '''Generates the buildout configuration
  
      Using the custom ``ListBuildout`` context, lists will be printed as multilines.
      If output is set to ``-`` it will print to stdout the file.
  
      Args:
          parts: dict based representation of the buildout file to generate
          output: name of the file to output
          force: if set, it won't care whether the file exists
  
      Raises:
          FileExistsError: when a file already exists.
      '''