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)
Ensure that 'option' is a list of strings.  If 'option' is
dataset/ETHPy150Open babble/babble/include/jython/Lib/distutils/cmd.py/Command.ensure_string_list