def _get_plugin_specs_as_list(specs):
 if (specs is not None):
  if isinstance(specs, str):
   specs = (specs.split(',') if specs else [])
  if (not isinstance(specs, (list, tuple))):
   raise UsageError(("Plugin specs must be a ','-separated string or a list/tuple of strings for plugin names. Given: %r" % specs))
  return list(specs)
 return []

def _get_plugin_specs_as_list ( specs ) : if ( specs is not None ) : if isinstance ( specs , str ) : specs = ( specs . split ( ',' ) if specs else [ ] ) if ( not isinstance ( specs , ( list , tuple ) ) ) : raise UsageError ( ( "Plugin specs must be a ','-separated string or a list/tuple of strings for plugin names. Given: %r" % specs ) ) return list ( specs ) return [ ]
parses a list of "plugin specs" and returns a list of plugin names .