[Python-checkins] CVS: python/dist/src/Lib filecmp.py,1.6,1.7

Moshe Zadka python-dev@python.org
Sun, 3 Dec 2000 12:48:11 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory slayer.i.sourceforge.net:/tmp/cvs-serv9465

Modified Files:
	filecmp.py 
Log Message:
Call of _cmp had wrong number of paramereters.
Fixed definition of _cmp.


Index: filecmp.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/filecmp.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** filecmp.py	2000/07/03 08:18:47	1.6
--- filecmp.py	2000/12/03 20:48:07	1.7
***************
*** 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