diff options
author | Guido van Rossum <guido@python.org> | 2000-04-28 13:31:52 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-04-28 13:31:52 (GMT) |
commit | 6664bb87dc821e777184c8ea88539a2fdde49501 (patch) | |
tree | 4099b6810d731be9bc81637a91266cc26cffd925 | |
parent | eca47847810f75c57f09241bb92d19e1cc90fa7e (diff) | |
download | cpython-6664bb87dc821e777184c8ea88539a2fdde49501.zip cpython-6664bb87dc821e777184c8ea88539a2fdde49501.tar.gz cpython-6664bb87dc821e777184c8ea88539a2fdde49501.tar.bz2 |
Sjoerd Mullender: cmp.py is obsolete...
-rw-r--r-- | Tools/freeze/bkfile.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Tools/freeze/bkfile.py b/Tools/freeze/bkfile.py index 6d0ccde..d29716a 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) |