[Python-checkins] CVS: python/dist/src/Lib filecmp.py,1.6,1.6.2.1
Guido van Rossum
gvanrossum@users.sourceforge.net
Tue, 20 Mar 2001 08:18:32 -0800
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv13966
Modified Files:
Tag: release20-maint
filecmp.py
Log Message:
Merge Moshe's patch (fix argcnt for _cmp() into the 2.0.1 branch.
Index: filecmp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/filecmp.py,v
retrieving revision 1.6
retrieving revision 1.6.2.1
diff -C2 -r1.6 -r1.6.2.1
*** filecmp.py 2000/07/03 08:18:47 1.6
--- filecmp.py 2001/03/20 16:18:30 1.6.2.1
***************
*** 296,302 ****
# 2 for funny cases (can't stat, etc.)
#
! def _cmp(a, b):
try:
! return not abs(cmp(a, b))
except os.error:
return 2
--- 296,302 ----
# 2 for funny cases (can't stat, etc.)
#
! def _cmp(a, b, sh, st):
try:
! return not abs(cmp(a, b, sh, st))
except os.error:
return 2