diff options
Diffstat (limited to 'Lib/packaging/pypi/dist.py')
-rw-r--r-- | Lib/packaging/pypi/dist.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Lib/packaging/pypi/dist.py b/Lib/packaging/pypi/dist.py index d3824c2..dbf6459 100644 --- a/Lib/packaging/pypi/dist.py +++ b/Lib/packaging/pypi/dist.py @@ -7,15 +7,13 @@ Release objects contain metadata-related information (see PEP 376); distribution objects contain download-related information. """ -import sys -import mimetypes import re +import hashlib import tempfile import urllib.request import urllib.parse import urllib.error import urllib.parse -import hashlib from shutil import unpack_archive from packaging.errors import IrrationalVersionError @@ -318,7 +316,6 @@ class DistInfo(IndexReference): path = tempfile.mkdtemp() filename = self.download(path) - content_type = mimetypes.guess_type(filename)[0] unpack_archive(filename, path) self._unpacked_dir = path |