def _format_optvalue(value, script=False):
 if script:
  value = _stringify(value)
 elif isinstance(value, (list, tuple)):
  value = _join(value)
 return value

def _format_optvalue ( value , script = False ) : if script : value = _stringify ( value ) elif isinstance ( value , ( list , tuple ) ) : value = _join ( value ) return value
internal function .