[Patches] freeze patch

Sjoerd Mullender sjoerd@oratrix.nl
Fri, 28 Apr 2000 12:35:54 +0200


cmp.py is obsolete...

Index: bkfile.py
===================================================================
RCS file: /projects/cvsroot/python/dist/src/Tools/freeze/bkfile.py,v
retrieving revision 1.1
diff -u -r1.1 bkfile.py
--- bkfile.py	1998/08/25 14:06:51	1.1
+++ bkfile.py	2000/04/28 10:32:51
@@ -35,11 +35,8 @@
 		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)

I confirm that, to the best of my knowledge and belief, this
contribution is free of any claims of third parties under copyright,
patent or other rights or interests ("claims").  To the extent that I
have any such claims, I hereby grant to CNRI a nonexclusive,
irrevocable, royalty-free, worldwide license to reproduce, distribute,
perform and/or display publicly, prepare derivative versions, and
otherwise use this contribution as part of the Python software and its
related documentation, or any derivative versions thereof, at no cost
to CNRI or its licensed users, and to authorize others to do so.

I acknowledge that CNRI may, at its sole discretion, decide whether or
not to incorporate this contribution in the Python software and its
related documentation.  I further grant CNRI permission to use my name
and other identifying information provided to CNRI by me for use in
connection with the Python software and its related documentation.

-- Sjoerd Mullender <sjoerd.mullender@oratrix.com>