This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ev
Recipients ev, tarek
Date 2011-03-15.03:30:25
SpamBayes Score 8.114065e-13
Marked as misclassified No
Message-id <1300159826.82.0.743719260919.issue11548@psf.upfronthosting.co.za>
In-reply-to
Content
Passing the format keyword parameter to shutil.unpack_archive triggers an exception:

Traceback (most recent call last):
  File "Lib/test/test_shutil.py", line 650, in test_unpack_archive
    unpack_archive(filename, tmpdir2, format=format)
  File "/home/evan/hg/cpython/Lib/shutil.py", line 741, in unpack_archive
    func(filename, extract_dir, **dict(format_info[1]))
TypeError: 'function' object is not iterable

This is due to that function incorrectly using the _UNPACK_FORMATS dictionary, which is fixed with the attached patch and test case.
History
Date User Action Args
2011-03-15 03:30:27evsetrecipients: + ev, tarek
2011-03-15 03:30:26evsetmessageid: <1300159826.82.0.743719260919.issue11548@psf.upfronthosting.co.za>
2011-03-15 03:30:26evlinkissue11548 messages
2011-03-15 03:30:26evcreate