How can I compare two files in Python 2.4.4? The files could be different lengths.
We have Python 2.4.4 on our servers. I would like to use the difflib.unified_diff()
function but I can't find examples that work with Python 2.4.4.
All the versions that I have seen on Stack Overflow contain the following:
with open("filename1","r+") as f1:
with open ("filename2","r+") as f2:
difflib.unified_diff(..........)
The problem that I have is within version 2.4.4 the with open ...
generates a SyntaxError. I would like to stay away from using the system call to diff or sdiff is possible.