[Python-bugs-list] [Bug #131996] wrong argument list for "def _cmp(...)" in filecmp.py

noreply@sourceforge.net noreply@sourceforge.net
Tue, 13 Feb 2001 02:12:46 -0800


Bug #131996, was updated on 2001-Feb-12 05:21
Here is a current snapshot of the bug.

Project: Python
Category: Python Library
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 5
Submitted by: nobody
Assigned to : moshez
Summary: wrong argument list for "def _cmp(...)" in filecmp.py

Details: to whom it may concern,

in the file filecmp.py please check the method _cmp(...) - I try to use
"dircmp(dir_a, dir_b) and get the following messages:

Traceback (most recent call last):
  File "\users\lib\filecmp.py", line 328, in ?
    demo()
  File "\users\lib\filecmp.py", line 323, in demo
    dd.report_full_closure()
  File "\users\lib\filecmp.py", line 264, in report_full_closure
    self.report()
  File "\users\lib\filecmp.py", line 241, in report
    if self.same_files:
  File "\users\lib\filecmp.py", line 147, in __getattr__
    self.phase3()
  File "\users\lib\filecmp.py", line 214, in phase3
    xx = cmpfiles(self.left, self.right, self.common_files)
  File "\users\lib\filecmp.py", line 288, in cmpfiles
    res[_cmp(ax, bx, shallow, use_statcache)].append(x)
TypeError: too many arguments; expected 2, got 4

Please correct the method _cmp(...)

thanks


Follow-Ups:

Date: 2001-Feb-13 02:12
By: tim_one

Comment:
This was fixed late last year by Moshe, in filecmp.py rev 1.7.
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=131996&group_id=5470