[SOLVED] Python difflib - POSIX default format or Gnu normal format?


It seems that difflib (and its example program) do not output differences in the POSIX default format (see http://www.unix.com/man-page/POSIX/1posix/diff/) or the Gnu diff normal format (see http://www.gnu.org/software/diffutils/manual/diffutils.html#Normal).

I wrote a pure Python implementation of the classic Unix "diff" program to produce output in the classic POSIX default format:

https://github.com/glanois/code/blob/master/python/ppt/diff.py