[Python-bugs-list] [Bug #124120] filecmp.dircmp crashes with TypeError

noreply@sourceforge.net noreply@sourceforge.net
Sun, 3 Dec 2000 06:12:20 -0800


Bug #124120, was updated on 2000-Dec-01 18:33
Here is a current snapshot of the bug.

Project: Python
Category: Library
Status: Open
Resolution: None
Bug Group: None
Priority: 6
Submitted by: Nobody
Assigned to : moshez
Summary: filecmp.dircmp crashes with TypeError

Details: By executing in Python 2.0
        my_dircmp = filecmp.dircmp(sys.argv[1], sys.argv[2])
        my_dircmp.report()
a TypeError occurs:

  File "c:\python\lib\filecmp.py", line 241, in report
    if self.same_files:
  File "c:\python\lib\filecmp.py", line 147, in __getattr__
    self.phase3()
  File "c:\python\lib\filecmp.py", line 214, in phase3
    xx = cmpfiles(self.left, self.right, self.common_files)
  File "c:\python\lib\filecmp.py", line 288, in cmpfiles
    res[_cmp(ax, bx, shallow, use_statcache)].append(x)
TypeError: too many arguments; expected 2, got 4

filecmp, 288: res[_cmp(ax, bx, shallow, use_statcache)].append(x)

filecmp, 298: def _cmp(a, b):




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