file - File related utilities

File related utilities.

compare(file1, file2, ignore_eof=True, encoding=None)[source]

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_(*args, **kwargs)[source]

Open a file removing invalid arguments on Python 2.x.