file - File related utilities¶
File related utilities.
compare(file1, file2, ignore_eof=True, encoding=None)¶
Compare two text files for equality. If ignore_eof is True, end of line characters are not considered. If not None encoding is used to open the files. On Python 2.x encoding is ignored.
Open a file removing invalid arguments on Python 2.x.