def load_stream(handle, delimiter=None):
delimiter = (delimiter or "<STR_LIT>") + "<STR_LIT:\n>"<EOL>while True:<EOL><INDENT>item = []<EOL>while True:<EOL><INDENT>line = handle.readline()<EOL>if line == "<STR_LIT>":<EOL><INDENT>raise StopIteration<EOL><DEDENT>elif line == delimiter:<EOL><INDENT>if item:<EOL><INDENT>break<EOL><DEDENT><DEDENT>elif line != '<STR_LIT:\n>':<EOL><INDENT>item.append(line)<EOL><DEDENT><DEDENT>yield "<STR_LIT>".join(item)<EOL><DEDENT>
Creates a string generator from a stream (file handle) containing data 
delimited by the delimiter strings. This is a stand-alone function and 
should be used to feed external data into a pipeline.

Arguments:

  - hande(``file``) A file handle open for reading.
  - delimiter(``str``) [default: ``None``] The default means that items will
    be separated by two new-line characters i.e.: ``"\\n\\n"``.