def convert(self, value, view):
        if isinstance(value, bytes):
            value = value.decode('utf8', 'ignore')

        if isinstance(value, STRING):
            if self.split:
                return value.split()
            else:
                return [value]

        try:
            value = list(value)
        except __HOLE__:
            self.fail(u'must be a whitespace-separated string or a list',
                      view, True)

        def convert(x):
            if isinstance(x, STRING):
                return x
            elif isinstance(x, bytes):
                return x.decode('utf8', 'ignore')
            else:
                self.fail(u'must be a list of strings', view, True)
        return list(map(convert, value))
dataset/ETHPy150Open beetbox/beets/beets/util/confit.py/StrSeq.convert