diff options
| author | 2015-02-02 21:13:19 +0100 | |
|---|---|---|
| committer | 2015-02-02 21:13:19 +0100 | |
| commit | 44025fa7cb7b7f9b601ec9f654d1f58a788294c5 (patch) | |
| tree | b5beb036589115a5b1be7ad0427a192b7f58e4bd /module | |
| parent | Fix https://github.com/pyload/pyload/issues/1134 (diff) | |
| download | pyload-44025fa7cb7b7f9b601ec9f654d1f58a788294c5.tar.xz | |
[UnZip] Fixed Typo
Diffstat (limited to 'module')
| -rw-r--r-- | module/plugins/internal/UnZip.py | 8 | 
1 files changed, 4 insertions, 4 deletions
| 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() | 
