I have two files. File test.a
and test.b
. test.a
was pre-generated on unix machine. test.b
is generated by user and can be generated both on windows and unix machines.
I can't use filecmp.cmp('test01/test.a', 'test01/test.b')
because it'll always return false, all thanks to different line endings.
Is there any elegant solution to this? If not, what would be the best way to change line endings of unix file before comparing it?
Thanks!