Fix py_lzma test

This commit is contained in:
Bastian Kleineidam 2015-12-06 20:46:10 +01:00
parent 8ba1531d81
commit 94aaaf58bd
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ import lzma
READ_SIZE_BYTES = 1024*1024 READ_SIZE_BYTES = 1024*1024
def _extract(archive, compression, cmd, format, verbosity, interactive, outdir): def _extract(archive, compression, cmd, format, verbosity, outdir):
"""Extract an LZMA or XZ archive with the lzma Python module.""" """Extract an LZMA or XZ archive with the lzma Python module."""
targetname = util.get_single_outfile(outdir, archive) targetname = util.get_single_outfile(outdir, archive)
try: try:
@ -43,7 +43,7 @@ def extract_xz(archive, compression, cmd, verbosity, interactive, outdir):
return _extract(archive, compression, cmd, lzma.FORMAT_XZ, verbosity, outdir) return _extract(archive, compression, cmd, lzma.FORMAT_XZ, verbosity, outdir)
def _create(archive, compression, cmd, format, verbosity, interactive, filenames): def _create(archive, compression, cmd, format, verbosity, filenames):
"""Create an LZMA or XZ archive with the lzma Python module.""" """Create an LZMA or XZ archive with the lzma Python module."""
if len(filenames) > 1: if len(filenames) > 1:
raise util.PatoolError('multi-file compression not supported in Python lzma') raise util.PatoolError('multi-file compression not supported in Python lzma')