parameters: (self, option)
docstring: Ensure that 'option' is a list of strings.  If 'option' is
          currently a string, we split it either on /,\s*/ or /\s+/, so
          "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
          ["foo", "bar", "baz"].
docstring_summary: Ensure that 'option' is a list of strings.  If 'option' is
          currently a string, we split it either on /,\s*/ or /\s+/, so
          "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
          ["foo", "bar", "baz"].
docstring_tokens: Ensure that option is a list of strings . If option is currently a string we split it either on / \ s * / or / \ s + / so foo bar baz foo bar baz and foo bar baz all become [ foo bar baz ] .
function: def ensure_string_list (self, option):
          """Ensure that 'option' is a list of strings.  If 'option' is
          currently a string, we split it either on /,\s*/ or /\s+/, so
          "foo bar baz", "foo,bar,baz", and "foo,   bar baz" all become
          ["foo", "bar", "baz"].
          """
          val = getattr(self, option)
          if val is None:
              return
          elif type(val) is StringType:
              setattr(self, option, re.split(r',\s*|\s+', val))
          else:
              if type(val) is ListType:
                  types = map(type, val)
                  ok = (types == [StringType] * len(val))
              else:
                  ok = 0
  
              if not ok:
                  raise DistutilsOptionError, \
                        "'%s' must be a list of strings (got %r)" % \
                        (option, val)
function_tokens: def ensure_string_list ( self , option ) : val = getattr ( self , option ) if val is None : return elif type ( val ) is StringType : setattr ( self , option , re . split ( r',\s*|\s+' , val ) ) else : if type ( val ) is ListType : types = map ( type , val ) ok = ( types == [ StringType ] * len ( val ) ) else : ok = 0 if not ok : raise DistutilsOptionError , "'%s' must be a list of strings (got %r)" % ( option , val )