diff Lib/cmpcache.py @ 559:683edb0c4463 legacy-trunk

New == syntax
author Guido van Rossum <guido@python.org>
date Wed, 01 Jan 1992 19:35:13 +0000
parents 342a7c61c0c3
children 7259e96a04a9
line wrap: on
line diff
--- a/Lib/cmpcache.py	Wed Jan 01 19:34:47 1992 +0000
+++ b/Lib/cmpcache.py	Wed Jan 01 19:35:13 1992 +0000
@@ -29,7 +29,7 @@
 	if not S_ISREG(s1[0]) or not S_ISREG(s2[0]):
 		# Either is a not a plain file -- always report as different
 		return 0
-	if s1 = s2:
+	if s1 == s2:
 		# type, size & mtime match -- report same
 		return 1
 	if s1[:2] <> s2[:2]: # Types or sizes differ, don't bother
@@ -40,7 +40,7 @@
 	if cache.has_key(key):
 		cs1, cs2, outcome = cache[key]
 		# cache hit
-		if s1 = cs1 and s2 = cs2:
+		if s1 == cs1 and s2 == cs2:
 			# cached signatures match
 			return outcome
 		# stale cached signature(s)