[issue25496] tarfile: Default value for compresslevel is not documented
![](https://secure.gravatar.com/avatar/fa0f7819f1825f596b384c19aa7dcf33.jpg?s=120&d=mm&r=g)
Hamza T Khan added the comment: Here is trivial fix for this issue. This is my first patch and I hope that it gets accepted and integrated. hamza@hamza-ub94:~/git/cpython$ grep compresslevel Lib/tarfile.py def gzopen(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs): fileobj = gzip.GzipFile(name, mode + "b", compresslevel, fileobj) def bz2open(cls, name, mode="r", fileobj=None, compresslevel=9, **kwargs): compresslevel=compresslevel) hamza@hamza-ub94:~/git/cpython$ ---------- hgrepos: +330 keywords: +patch nosy: +hamzatkhan94 Added file: http://bugs.python.org/file41499/Issue25496.v1.patch _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue25496> _______________________________________
participants (1)
-
Hamza T Khan