def check_csv(option, opt, value):
 if isinstance(value, (list, tuple)):
  return value
 try:
  return splitstrip(value)
 except ValueError:
  raise OptionValueError(('option %s: invalid csv value: %r' % (opt, value)))

def check_csv ( option , opt , value ) : if isinstance ( value , ( list , tuple ) ) : return value try : return splitstrip ( value ) except ValueError : raise OptionValueError ( ( 'option %s: invalid csv value: %r' % ( opt , value ) ) )
some of the curator methods should not operate against multiple indices at once .