]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merge Moshe's patch (fix argcnt for _cmp() into the 2.0.1 branch.
authorGuido van Rossum <guido@python.org>
Tue, 20 Mar 2001 16:18:30 +0000 (16:18 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 20 Mar 2001 16:18:30 +0000 (16:18 +0000)
Lib/filecmp.py

index e84dd07b669193d4f7b74cac9c494c7d914b0d2b..e5024a493a586e3c271eddeaf770ee7d53ce3b64 100644 (file)
@@ -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