mirror of https://github.com/python/cpython.git
Call of _cmp had wrong number of paramereters.
Fixed definition of _cmp.
This commit is contained in:
parent
1d99433a58
commit
afb17fc7b2
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue