cpython: 5b70eb1cfad0 (original) (raw)

Mercurial > cpython

changeset 94578:5b70eb1cfad0

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

Serhiy Storchaka storchaka@gmail.com
date Tue, 10 Feb 2015 08:47:10 +0200
parents 76170e33f251(current diff)2a06379f6562(diff)
children f4d49881e5d1
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 @@ -2494,16 +2494,16 @@ def main(): _, ext = os.path.splitext(tar_name) compressions = { # gz

--- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -2006,6 +2006,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,12 +13,15 @@ Core and Builtins Library ------- +- Issue #23421: Fixed compression in tarfile CLI. Patch by wdv4758h. +