def _dump_list(list_data, jsonify, stream=sys.stdout):
if not jsonify and list_data:<EOL><INDENT>print('<STR_LIT:\n>'.join(list_data), file=stream)<EOL><DEDENT>else:<EOL><INDENT>print(json.dumps(list_data), file=stream)<EOL><DEDENT>
Dump list to output stream, optionally encoded as JSON.

Parameters
----------
list_data : list
jsonify : bool
stream : file-like