summaryrefslogtreecommitdiffstats
path: root/Lib/cmp.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-12-26 13:03:14 (GMT)
committerGuido van Rossum <guido@python.org>1991-12-26 13:03:14 (GMT)
commit4dedbf7197e679b432fd3f06d8e36a223ae78f00 (patch)
treed18cac8c4186f1f3d4279011a42c22471fa51434 /Lib/cmp.py
parent5c5e829a5d23f2cbffd188ebc3688147bc38b2e3 (diff)
downloadcpython-4dedbf7197e679b432fd3f06d8e36a223ae78f00.zip
cpython-4dedbf7197e679b432fd3f06d8e36a223ae78f00.tar.gz
cpython-4dedbf7197e679b432fd3f06d8e36a223ae78f00.tar.bz2
Use KeyError.
Diffstat (limited to 'Lib/cmp.py')
-rw-r--r--Lib/cmp.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/cmp.py b/Lib/cmp.py
index 434caee..32b77fa 100644
--- a/Lib/cmp.py
+++ b/Lib/cmp.py
@@ -34,7 +34,7 @@ def cmp(f1, f2): # Compare two files, use the cache if possible.
# cached signatures match
return outcome
# stale cached signature(s)
- except RuntimeError:
+ except KeyError:
# cache miss
pass
# really compare