From c9a822a7c6a99e55bae67998b8fb839abe9a883b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 20 Mar 2001 16:18:30 +0000 Subject: [PATCH] Merge Moshe's patch (fix argcnt for _cmp() into the 2.0.1 branch. --- Lib/filecmp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/filecmp.py b/Lib/filecmp.py index e84dd07b6691..e5024a493a58 100644 --- a/Lib/filecmp.py +++ b/Lib/filecmp.py @@ -295,9 +295,9 @@ def cmpfiles(a, b, common, shallow=1, use_statcache=0): # 1 for different # 2 for funny cases (can't stat, etc.) # -def _cmp(a, b): +def _cmp(a, b, sh, st): try: - return not abs(cmp(a, b)) + return not abs(cmp(a, b, sh, st)) except os.error: return 2 -- 2.47.3