summaryrefslogtreecommitdiffstats
path: root/Lib/cmp.py
diff options
context:
space:
mode:
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 4ebdfc6..69e6e27 100644
--- a/Lib/cmp.py
+++ b/Lib/cmp.py
@@ -26,7 +26,7 @@ def cmp(f1, f2): # Compare two files, use the cache if possible.
# types or sizes differ -- report different
return 0
# same type and size -- look in the cache
- key = f1 + ' ' + f2
+ key = (f1, f2)
try:
cs1, cs2, outcome = cache[key]
# cache hit