Mercurial > ~astiob > upreckon > hgweb
changeset 255:d32b14e5a43b default tip
Added support for LZMA/XZ-compressed tar files (Python 3.3+)
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Sun, 19 Oct 2014 01:33:22 +0200 |
parents | 393b4689ac2f |
children | |
files | upreckon/files.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/upreckon/files.py Fri Mar 14 15:31:40 2014 +0000 +++ b/upreckon/files.py Sun Oct 19 01:33:22 2014 +0200 @@ -12,7 +12,7 @@ # In these two variables, use full stops no matter what os.extsep is; # all full stops will be converted to os.extsep on the fly -archives = 'tests.tar', 'tests.zip', 'tests.tgz', 'tests.tar.gz', 'tests.tbz2', 'tests.tar.bz2' +archives = 'tests.tar', 'tests.zip', 'tests.tgz', 'tests.tar.gz', 'tests.txz', 'tests.tar.xz', 'tests.tlz', 'tests.tar.lzma', 'tests.tbz2', 'tests.tar.bz2' formats = {} class Archive(object): @@ -119,7 +119,7 @@ self._tarfile.fileobj.close() self._tarfile.closed = True - formats['tar'] = formats['tgz'] = formats['tar.gz'] = formats['tbz2'] = formats['tar.bz2'] = TarArchive + formats['tar'] = formats['tgz'] = formats['tar.gz'] = formats['txz'] = formats['tar.xz'] = formats['tlz'] = formats['tar.lzma'] = formats['tbz2'] = formats['tar.bz2'] = TarArchive try: import zipfile