From: Guido van Rossum Date: Fri, 28 Apr 2000 13:31:52 +0000 (+0000) Subject: Sjoerd Mullender: cmp.py is obsolete... X-Git-Tag: v2.0b1~1912 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6664bb87dc821e777184c8ea88539a2fdde49501;p=python Sjoerd Mullender: cmp.py is obsolete... --- diff --git a/Tools/freeze/bkfile.py b/Tools/freeze/bkfile.py index 6d0ccdeac7..d29716a93c 100644 --- a/Tools/freeze/bkfile.py +++ b/Tools/freeze/bkfile.py @@ -35,11 +35,8 @@ class _BkFile: self.__file.close() if self.__backup is None: return - import cmp - # don't use cmp.cmp because of NFS bugs :-( and - # anyway, the stat mtime values differ so do_cmp will - # most likely be called anyway - if cmp.do_cmp(self.__backup, self.__filename): + import filecmp + if filecmp.cmp(self.__backup, self.__filename, shallow = 0): import os os.unlink(self.__filename) os.rename(self.__backup, self.__filename)