-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sun, 30 May 2010 11:27:41 -0400
Christopher Harvey <[email protected]> wrote:

> As for generating the diff is it ok to use difflib to generate the
> diff text? I hear there is a diff environment variable..(but I can't
> seem to find it now) should I use that instead?

If I correctly understand what you're referring to, that variable is
useful if you just need to present the diff to the user in the format
preferred by him -- he could then choose an alternate diffing program,
offering another output format.

If you need to parse the differences, that's not an option for you as
the diffing program chosen by user might use any freeform output
format, making it unparseable. Thus, in that case difflib is the solu-
tion you're looking for -- it is prepared to provide the differences
in a way suitable for program use.


- -- 
Best regards,
Michał Górny

<http://mgorny.alt.pl>
<xmpp:[email protected]>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)

iEYEARECAAYFAkwCjW0ACgkQnGSe5QXeB7uojwCg5bXcUVGR487tyuU+wnNDG5fA
JMkAoKiqCHJXsmQz7aYGU+J+BzTPwQsn
=lRtw
-----END PGP SIGNATURE-----

Reply via email to