[Patches] [ python-Patches-438331 ] make ndiff.py into a library module
noreply@sourceforge.net
noreply@sourceforge.net
Tue, 03 Jul 2001 12:59:47 -0700
Patches item #438331, was opened at 2001-07-03 12:59
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=438331&group_id=5470
Category: demos and tools
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: David Goodger (goodger)
Assigned to: Nobody/Anonymous (nobody)
Summary: make ndiff.py into a library module
Initial Comment:
Here's a patch to make ndiff.py's functionality
generally available to Python programs. It should move
from Tools/scripts/ to Lib/.
ndiff.py's functionality is very useful for making
comparisons human-readable. I wanted to use it from my
Python code (unittest's of generated XML), but
unfortunately ndiff.py wasn't written that way. So I
refactored out the lists-of-strings comparison code
from fcompare() into lcompare(), and parameterized the
formerly hard-coded IS_*_JUNK filters.
I'd like to see it further converted to return a diff
string, rather than only spew to stdout. It's easy
enough to capture stdout, but klugey. I will do the
mods if they have a good-to-certain chance of making
it in. (Please let me know.)
Also, give me the word and I will whip up some TeX
docs if Tim doesn't have the time.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=438331&group_id=5470