From: Guido van Rossum Date: Tue, 20 Mar 2001 16:18:30 +0000 (+0000) Subject: Merge Moshe's patch (fix argcnt for _cmp() into the 2.0.1 branch. X-Git-Tag: v2.0.1c1~63 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c9a822a7c6a99e55bae67998b8fb839abe9a883b;p=thirdparty%2FPython%2Fcpython.git Merge Moshe's patch (fix argcnt for _cmp() into the 2.0.1 branch. --- 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