[Python-checkins] CVS: python/dist/src/Tools/freeze bkfile.py,1.1,1.2
Guido van Rossum
python-dev@python.org
2000年4月28日 09:31:55 -0400 (EDT)
Update of /projects/cvsroot/python/dist/src/Tools/freeze
In directory eric:/projects/python/develop/guido/src/Tools/freeze
Modified Files:
bkfile.py
Log Message:
Sjoerd Mullender: cmp.py is obsolete...
Index: bkfile.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/freeze/bkfile.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** bkfile.py 1998年08月25日 14:06:51 1.1
--- bkfile.py 2000年04月28日 13:31:52 1.2
***************
*** 36,44 ****
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 os
os.unlink(self.__filename)
--- 36,41 ----
if self.__backup is None:
return
! import filecmp
! if filecmp.cmp(self.__backup, self.__filename, shallow = 0):
import os
os.unlink(self.__filename)