DOH! Thanks Philip. I was using Python 2.5. once I used=20
diff =3D difflib.Differ() it worked fine.
From: Philip Jenvey [mailto:pjenvey@...
Sent: Saturday, November 10, 2007 12:58 PM
To: Moore, Greg
Subject: Re: [Jython-users] text diff?
On Nov 8, 2007, at 1:40 PM, Moore, Greg wrote:
> I'd like to compare 2 file. With Python I can do:
> def diff(self, doc1, doc2):
> import difflib
> from pprint import pprint
> diff =3D difflib()
> diffResult =3D list(diff.compare(doc1, doc2))
> but with the worst timing I found out, sadly, that this doesn't =20
> work with Jython 2.2 on java1.5.0_11
This code won't work in Python 2.2 either. The difflib() operation =20
here is calling a module, which obviously doesn't work. I think what =20
you mean to do is:
diff =3D difflib.Differ()
This message and any attachments are intended only for the use of the add=
ressee and may contain information that is privileged and confidential. I=
f the reader of the message is not the intended recipient or an authorize=
d representative of the intended recipient, you are hereby notified that =
any dissemination of this communication is strictly prohibited. If you ha=
ve received this communication in error, please notify us immediately by =
e-mail and delete the message and any attachments from your system.