cpython: 2a06379f6562 (original) (raw)

Mercurial > cpython

changeset 94577:2a06379f6562 3.4

Issue #23421: Fixed compression in tarfile CLI. Patch by wdv4758h. [#23421]

Serhiy Storchaka storchaka@gmail.com
date Tue, 10 Feb 2015 08:45:53 +0200
parents b82cc9180a78
children 5b70eb1cfad0 645f3d750be1
files Lib/tarfile.py Lib/test/test_tarfile.py Misc/NEWS
diffstat 3 files changed, 26 insertions(+), 8 deletions(-)[+] [-] Lib/tarfile.py 16 Lib/test/test_tarfile.py 15 Misc/NEWS 3

line wrap: on

line diff

--- a/Lib/tarfile.py +++ b/Lib/tarfile.py @@ -2491,16 +2491,16 @@ def main(): _, ext = os.path.splitext(tar_name) compressions = { # gz

--- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -1994,6 +1994,21 @@ class CommandLineTest(unittest.TestCase) finally: support.unlink(tar_name)

+ def test_extract_command(self): self.make_simple_tarfile(tmpname) for opt in '-e', '--extract':

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -13,8 +13,11 @@ Core and Builtins Library ------- +- Issue #23421: Fixed compression in tarfile CLI. Patch by wdv4758h. +