[issue10693] error in documentation of distutils.archive_util.make_zipfile

New submission from Eli Bendersky <eliben@gmail.com>: The documentation of: distutils.archive_util.make_zipfile(base_name, base_dir[, verbose=0, dry_run=0]) Says: Create a zip file from all files in and under base_dir. The output zip file will be named base_dir + .zip. This isn't correct, as the name of the output file is "base_name + .zip" The error exists both in the docstring of make_zipfile in distutils/archive_util.py and in the ReST documentation of the function ---------- assignee: tarek components: Distutils, Documentation keywords: easy messages: 123872 nosy: docs@python, eli.bendersky, eric.araujo, tarek priority: normal severity: normal status: open title: error in documentation of distutils.archive_util.make_zipfile versions: Python 2.6, Python 2.7, Python 3.2 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10693> _______________________________________

Eli Bendersky <eliben@gmail.com> added the comment: Attaching a fix for Doc/distutils/apiref.rst and Lib/distutils/archive_util.py in Python 3.2 If it's OK I will backport to other versions as well. ---------- keywords: +patch Added file: http://bugs.python.org/file20055/issue10693.py32.1.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10693> _______________________________________

Éric Araujo <merwok@netwok.org> added the comment: Patch extended to cover shutil, which has gained _make_{tar,zip}file in 2.7 and 3.2, and committed in all three branches in r87277 to r87279. Will be fixed in distutils2 the next time I synchronize d2._backport.shutil. ---------- assignee: tarek -> eric.araujo resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.1 -Python 2.6 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue10693> _______________________________________
participants (2)
-
Eli Bendersky
-
Éric Araujo