From 7f7c605f295059e582fb6e208b2a5ee242533042 Mon Sep 17 00:00:00 2001 From: Martin Panter Date: Wed, 13 Apr 2016 03:24:06 +0000 Subject: [PATCH] Issue #25496: Document compresslevel defaults to 9, by Hamza T Khan --- Doc/library/tarfile.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/library/tarfile.rst b/Doc/library/tarfile.rst index 7a233c1633b..5fa4787a0c1 100644 --- a/Doc/library/tarfile.rst +++ b/Doc/library/tarfile.rst @@ -101,7 +101,7 @@ Some facts and figures: For modes ``'w:gz'``, ``'r:gz'``, ``'w:bz2'``, ``'r:bz2'``, ``'x:gz'``, ``'x:bz2'``, :func:`tarfile.open` accepts the keyword argument - *compresslevel* to specify the compression level of the file. + *compresslevel* (default ``9``) to specify the compression level of the file. For special purposes, there is a second format for *mode*: ``'filemode|[compression]'``. :func:`tarfile.open` will return a :class:`TarFile`