(self, value_list, variable=None, prefix='',
                quoter=QuoteIfNecessary)
Write a variable definition that is a list of values.

    E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
         foo = blaha blahb
    but in a pretty-printed style.
Write a variable definition that is a list of values.
Write a variable definition that is a list of values .
def WriteList(self, value_list, variable=None, prefix='',
                quoter=QuoteIfNecessary):
    """Write a variable definition that is a list of values.

    E.g. WriteList(['a','b'], 'foo', prefix='blah') writes out
         foo = blaha blahb
    but in a pretty-printed style.
    """
    values = ''
    if value_list:
      value_list = [quoter(prefix + l) for l in value_list]
      values = ' \\\n\t' + ' \\\n\t'.join(value_list)
    self.fp.write('%s :=%s\n\n' % (variable, values))
def WriteList ( self , value_list , variable = None , prefix = '' , quoter = QuoteIfNecessary ) : values = '' if value_list : value_list = [ quoter ( prefix + l ) for l in value_list ] values = ' \\\n\t' + ' \\\n\t' . join ( value_list ) self . fp . write ( '%s :=%s\n\n' % ( variable , values ) )