From 44025fa7cb7b7f9b601ec9f654d1f58a788294c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jens=20H=C3=B6rnlein?= Date: Mon, 2 Feb 2015 21:13:19 +0100 Subject: [UnZip] Fixed Typo --- module/plugins/internal/UnZip.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'module/plugins') diff --git a/module/plugins/internal/UnZip.py b/module/plugins/internal/UnZip.py index 8093c1ba8..eb8259e47 100644 --- a/module/plugins/internal/UnZip.py +++ b/module/plugins/internal/UnZip.py @@ -4,15 +4,15 @@ from __future__ import with_statement import os import sys -import zipfile +from zipfile import ZipFile, BadZipfile, LargeZipFile from module.plugins.internal.Extractor import Extractor, ArchiveError, CRCError, PasswordError from module.utils import fs_encode class UnZip(Extractor): __name__ = "UnZip" - __version__ = "1.06" + __version__ = "1.07" __description__ = """Zip extractor plugin""" __license__ = "GPLv3" @@ -29,8 +29,8 @@ class UnZip(Extractor): def extract(self, password=None): try: - with zipfile.ZipFile(fs_encode(self.filename), 'r', allowZip64=True) as z: - z.setpassword(self.password) + with ZipFile(fs_encode(self.filename), 'r', allowZip64=True) as z: + z.setpassword(password) badfile = z.testzip() -- cgit v1.2.3