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.

classification
Title: shutil.make_archive() supports bz2, but it's not documented
Type: Stage:
Components: Documentation Versions: Python 3.2, Python 2.7
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: tarek Nosy List: georg.brandl, l0nwlf, mastrodomenico, tarek
Priority: normal Keywords: patch

Created on 2010-04-19 16:25 by mastrodomenico, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
shutil.patch l0nwlf, 2010-04-19 18:44 adds "bztar" as format parameter in documentation and docstring of shutil
Messages (4)
msg103614 - (view) Author: Lino Mastrodomenico (mastrodomenico) Date: 2010-04-19 16:25
The new function shutil.make_archive() supports bzip2 compression using "bztar" as format parameter, but neither the documentation nor the docstring mention it (all the other compression formats are correctly listed).
msg103619 - (view) Author: Shashwat Anand (l0nwlf) Date: 2010-04-19 18:33
Seems like these formats are supported, so yes "bztar" can be used as a format parameter.

_ARCHIVE_FORMATS = {
     'gztar': (_make_tarball, [('compress', 'gzip')], "gzip'ed tar-file"),
     'bztar': (_make_tarball, [('compress', 'bzip2')], "bzip2'ed tar-file"),                      
     'ztar':  (_make_tarball, [('compress', 'compress')],
                 "compressed tar file"),
     'tar':   (_make_tarball, [('compress', None)], "uncompressed tar file"),
     'zip':   (_make_zipfile, [],"ZIP file")
     }
msg103620 - (view) Author: Shashwat Anand (l0nwlf) Date: 2010-04-19 18:44
Attaching the fix
msg103641 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2010-04-19 21:33
done in r80221, r80224, 

Thanks!
History
Date User Action Args
2022-04-11 14:57:00adminsetgithub: 52709
2010-04-19 21:33:40tareksetstatus: open -> closed

messages: + msg103641
2010-04-19 18:59:34tareksetassignee: georg.brandl -> tarek
2010-04-19 18:57:16l0nwlfsetnosy: + tarek
2010-04-19 18:44:20l0nwlfsetfiles: + shutil.patch
keywords: + patch
messages: + msg103620
2010-04-19 18:33:20l0nwlfsetnosy: + l0nwlf
messages: + msg103619
2010-04-19 16:25:23mastrodomenicocreate