+ parse_input(input_file, output_file,
+ exclude_headers, show_hunk_infos)
+
+def parse_from_memory(txt, exclude_headers, show_hunk_infos):
+ " Parses diff from memory and returns a string with html "
+ stream = StringIO.StringIO(txt)
+ parse_input(stream, stream, exclude_headers, show_hunk_infos)
+ return stream.buf