diff options
author | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1992-01-01 19:35:13 (GMT) |
commit | bdfcfccbe591e15221f35add01132174c9b4e669 (patch) | |
tree | 7e5f0d52b8c44e623b12e8f4b5cd645c361e5aeb /Lib/cmpcache.py | |
parent | 4d8e859e8f0a209a7e999ce9cc0988156c795949 (diff) | |
download | cpython-bdfcfccbe591e15221f35add01132174c9b4e669.zip cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.gz cpython-bdfcfccbe591e15221f35add01132174c9b4e669.tar.bz2 |
New == syntax
Diffstat (limited to 'Lib/cmpcache.py')
-rw-r--r-- | Lib/cmpcache.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/cmpcache.py b/Lib/cmpcache.py index e846f58..20202e2 100644 --- a/Lib/cmpcache.py +++ b/Lib/cmpcache.py @@ -29,7 +29,7 @@ def cmp(f1, f2): 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 @@ def cmp(f1, f2): 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) |