Skip to content

Commit

Permalink
Merge pull request #5629 from hugovk/replace-deprecated-BadZipfile
Browse files Browse the repository at this point in the history
Replace deprecated BadZipfile with BadZipFile
  • Loading branch information
matteius committed Mar 12, 2023
2 parents ad5a8ac + b9ea8b7 commit b3abbf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pipenv/patched/pip/_internal/network/lazy_wheel.py
Expand Up @@ -6,7 +6,7 @@
from contextlib import contextmanager
from tempfile import NamedTemporaryFile
from typing import Any, Dict, Generator, List, Optional, Tuple
from zipfile import BadZipfile, ZipFile
from zipfile import BadZipFile, ZipFile

from pipenv.patched.pip._vendor.packaging.utils import canonicalize_name
from pipenv.patched.pip._vendor.requests.models import CONTENT_CHUNK_SIZE, Response
Expand Down Expand Up @@ -160,7 +160,7 @@ def _check_zip(self) -> None:
# For read-only ZIP files, ZipFile only needs
# methods read, seek, seekable and tell.
ZipFile(self) # type: ignore
except BadZipfile:
except BadZipFile:
pass
else:
break
Expand Down

0 comments on commit b3abbf7

Please sign in to comment.